unread.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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" }} (<span class="unread-counter">{{ .countUnread }}</span>)</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. <li>
  11. <a href="{{ route "markAllAsRead" }}">{{ t "Mark all as read" }}</a>
  12. </li>
  13. </ul>
  14. {{ end }}
  15. </section>
  16. {{ if not .entries }}
  17. <p class="alert">{{ t "There is no unread article." }}</p>
  18. {{ else }}
  19. <div class="items hide-read-items">
  20. {{ range .entries }}
  21. <article class="item touch-item item-status-{{ .Status }}" data-id="{{ .ID }}">
  22. <div class="item-header">
  23. <span class="item-title">
  24. {{ if ne .Feed.Icon.IconID 0 }}
  25. <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16">
  26. {{ end }}
  27. <a href="{{ route "unreadEntry" "entryID" .ID }}">{{ .Title }}</a>
  28. </span>
  29. <span class="category"><a href="{{ route "categoryEntries" "categoryID" .Feed.Category.ID }}">{{ .Feed.Category.Title }}</a></span>
  30. </div>
  31. {{ template "item_meta" . }}
  32. </article>
  33. {{ end }}
  34. </div>
  35. {{ template "pagination" .pagination }}
  36. {{ end }}
  37. {{ end }}