starred_entries.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {{ define "title"}}{{ t "page.starred.title" }} ({{ .total }}){{ end }}
  2. {{ define "page_header"}}
  3. <section class="page-header" aria-labelledby="page-header-title page-header-title-count">
  4. <h1 id="page-header-title" dir="auto">
  5. {{ t "page.starred.title" }}
  6. <span aria-hidden="true"> ({{ .total }})</span>
  7. </h1>
  8. <span id="page-header-title-count" class="sr-only">{{ plural "page.starred_entry_count" .total .total }}</span>
  9. </section>
  10. {{ end }}
  11. {{ define "content"}}
  12. {{ if not .entries }}
  13. <p role="alert" class="alert alert-info">{{ t "alert.no_starred" }}</p>
  14. {{ else }}
  15. <div class="pagination-top">
  16. {{ template "pagination" .pagination }}
  17. </div>
  18. <div class="items">
  19. {{ range .entries }}
  20. <article
  21. class="item entry-item {{ if $.user.EntrySwipe }}entry-swipe{{ end }} item-status-{{ .Status }}"
  22. data-id="{{ .ID }}"
  23. aria-labelledby="entry-title-{{ .ID }}"
  24. tabindex="-1"
  25. >
  26. <header class="item-header" dir="auto">
  27. <h2 id="entry-title-{{ .ID }}" class="item-title">
  28. <a href="{{ route "starredEntry" "entryID" .ID }}">
  29. {{ if ne .Feed.Icon.IconID 0 }}
  30. <img src="{{ route "feedIcon" "externalIconID" .Feed.Icon.ExternalIconID }}" width="16" height="16" loading="lazy" alt="">
  31. {{ end }}
  32. {{ .Title }}
  33. </a>
  34. </h2>
  35. <span class="category">
  36. <a href="{{ route "categoryEntries" "categoryID" .Feed.Category.ID }}">
  37. {{ .Feed.Category.Title }}
  38. </a>
  39. </span>
  40. </header>
  41. {{ template "item_meta" dict "user" $.user "entry" . "hasSaveEntry" $.hasSaveEntry }}
  42. </article>
  43. {{ end }}
  44. </div>
  45. <div class="pagination-bottom">
  46. {{ template "pagination" .pagination }}
  47. </div>
  48. {{ end }}
  49. {{ end }}