unread.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {{ define "title"}}{{ t "Unread Items" }} {{ if gt .countUnread 0 }}({{ .countUnread }}){{ end }} {{ end }}
  2. {{ define "content"}}
  3. <section class="page-header">
  4. <h1>{{ t "Unread" }} ({{ .countUnread }})</h1>
  5. <ul>
  6. <li>
  7. <a href="#" data-on-click="markPageAsRead">{{ t "Mark this page as read" }}</a>
  8. </li>
  9. </ul>
  10. </section>
  11. {{ if not .entries }}
  12. <p class="alert">{{ t "There is no unread article." }}</p>
  13. {{ else }}
  14. <div class="items hide-read-items">
  15. {{ range .entries }}
  16. <article class="item item-status-{{ .Status }}" data-id="{{ .ID }}">
  17. <div class="item-header">
  18. <span class="item-title">
  19. {{ if ne .Feed.Icon.IconID 0 }}
  20. <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16">
  21. {{ end }}
  22. <a href="{{ route "unreadEntry" "entryID" .ID }}">{{ .Title }}</a>
  23. </span>
  24. <span class="category"><a href="{{ route "categoryEntries" "categoryID" .Feed.Category.ID }}">{{ .Feed.Category.Title }}</a></span>
  25. </div>
  26. <div class="item-meta">
  27. <ul>
  28. <li>
  29. <a href="{{ route "feedEntries" "feedID" .Feed.ID }}" title="{{ .Feed.Title }}">{{ domain .Feed.SiteURL }}</a>
  30. </li>
  31. <li>
  32. <time datetime="{{ isodate .Date }}" title="{{ isodate .Date }}">{{ elapsed .Date }}</time>
  33. </li>
  34. <li>
  35. <a href="{{ .URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ t "Original" }}</a>
  36. </li>
  37. </ul>
  38. </div>
  39. </article>
  40. {{ end }}
  41. </div>
  42. {{ template "pagination" .pagination }}
  43. {{ end }}
  44. {{ end }}