unread_entries.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {{ define "title"}}{{ t "page.unread.title" }} {{ if gt .countUnread 0 }}({{ .countUnread }}){{ end }} {{ end }}
  2. {{ define "content"}}
  3. <section class="page-header">
  4. <h1>{{ t "page.unread.title" }} (<span class="unread-counter">{{ .countUnread }}</span>)</h1>
  5. {{ if .entries }}
  6. <ul>
  7. <li>
  8. <a href="#" data-on-click="markPageAsRead">{{ t "menu.mark_page_as_read" }}</a>
  9. </li>
  10. <li>
  11. <a data-link-state="flip"
  12. data-label-new-state="{{ t "menu.mark_all_as_read_wip" }}"
  13. href="{{ route "markAllAsRead" }}">{{ t "menu.mark_all_as_read" }}</a>
  14. </li>
  15. </ul>
  16. {{ end }}
  17. </section>
  18. {{ if not .entries }}
  19. <p class="alert">{{ t "alert.no_unread_entry" }}</p>
  20. {{ else }}
  21. <div class="items hide-read-items">
  22. {{ range .entries }}
  23. <article class="item touch-item item-status-{{ .Status }}" data-id="{{ .ID }}">
  24. <div class="item-header">
  25. <span class="item-title">
  26. {{ if ne .Feed.Icon.IconID 0 }}
  27. <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" alt="{{ .Feed.Title }}">
  28. {{ end }}
  29. <a href="{{ route "unreadEntry" "entryID" .ID }}">{{ .Title }}</a>
  30. </span>
  31. <span class="category"><a href="{{ route "categoryEntries" "categoryID" .Feed.Category.ID }}">{{ .Feed.Category.Title }}</a></span>
  32. </div>
  33. {{ template "item_meta" dict "user" $.user "entry" . "hasSaveEntry" $.hasSaveEntry }}
  34. </article>
  35. {{ end }}
  36. </div>
  37. <section class="page-footer">
  38. {{ if .entries }}
  39. <ul>
  40. <li>
  41. <a href="#" data-on-click="markPageAsRead">{{ t "menu.mark_page_as_read" }}</a>
  42. </li>
  43. </ul>
  44. {{ end }}
  45. </section>
  46. {{ template "pagination" .pagination }}
  47. {{ end }}
  48. {{ end }}