unread.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. {{ if .entries }}
  6. <ul>
  7. <li>
  8. <a href="#" data-on-click="markPageAsRead">{{ t "Mark this page as read" }}</a>
  9. </li>
  10. </ul>
  11. {{ end }}
  12. </section>
  13. {{ if not .entries }}
  14. <p class="alert">{{ t "There is no unread article." }}</p>
  15. {{ else }}
  16. <div class="items hide-read-items">
  17. {{ range .entries }}
  18. <article class="item touch-item item-status-{{ .Status }}" data-id="{{ .ID }}">
  19. <div class="item-header">
  20. <span class="item-title">
  21. {{ if ne .Feed.Icon.IconID 0 }}
  22. <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16">
  23. {{ end }}
  24. <a href="{{ route "unreadEntry" "entryID" .ID }}">{{ .Title }}</a>
  25. </span>
  26. <span class="category"><a href="{{ route "categoryEntries" "categoryID" .Feed.Category.ID }}">{{ .Feed.Category.Title }}</a></span>
  27. </div>
  28. <div class="item-meta">
  29. <ul>
  30. <li>
  31. <a href="{{ route "feedEntries" "feedID" .Feed.ID }}" title="{{ .Feed.Title }}">{{ domain .Feed.SiteURL }}</a>
  32. </li>
  33. <li>
  34. <time datetime="{{ isodate .Date }}" title="{{ isodate .Date }}">{{ elapsed .Date }}</time>
  35. </li>
  36. <li>
  37. <a href="#"
  38. title="{{ t "Save this article" }}"
  39. data-save-entry="true"
  40. data-save-url="{{ route "saveEntry" "entryID" .ID }}"
  41. data-label-loading="{{ t "Saving..." }}"
  42. data-label-done="{{ t "Done!" }}"
  43. >{{ t "Save" }}</a>
  44. </li>
  45. <li>
  46. <a href="{{ .URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ t "Original" }}</a>
  47. </li>
  48. </ul>
  49. </div>
  50. </article>
  51. {{ end }}
  52. </div>
  53. {{ template "pagination" .pagination }}
  54. {{ end }}
  55. {{ end }}