bookmark_entries.html 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {{ define "title"}}{{ t "page.starred.title" }} ({{ .total }}){{ end }}
  2. {{ define "page_header"}}
  3. <section class="page-header" aria-labelledby="page-header-title">
  4. <h1 id="page-header-title" dir="auto">
  5. {{ t "page.starred.title" }}
  6. <span aria-hidden="true"> ({{ .total }})</span>
  7. </h1>
  8. <span class="sr-only">{{ t "page.starred.total" }}: {{ .total }}</span>
  9. </section>
  10. {{ end }}
  11. {{ define "content"}}
  12. {{ if not .entries }}
  13. <p class="alert alert-info">{{ t "alert.no_bookmark" }}</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. >
  25. <header class="item-header" dir="auto">
  26. <h2 id="entry-title-{{ .ID }}" class="item-title">
  27. <a href="{{ route "starredEntry" "entryID" .ID }}">
  28. {{ if ne .Feed.Icon.IconID 0 }}
  29. <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" loading="lazy" alt="{{ .Feed.Title }}">
  30. {{ else }}
  31. <span class="sr-only">{{ .Feed.Title }}</span>
  32. {{ end }}
  33. {{ .Title }}
  34. </a>
  35. </h2>
  36. <span class="category">
  37. <a href="{{ route "categoryEntries" "categoryID" .Feed.Category.ID }}">
  38. {{ .Feed.Category.Title }}
  39. </a>
  40. </span>
  41. </header>
  42. {{ template "item_meta" dict "user" $.user "entry" . "hasSaveEntry" $.hasSaveEntry }}
  43. </article>
  44. {{ end }}
  45. </div>
  46. <div class="pagination-bottom">
  47. {{ template "pagination" .pagination }}
  48. </div>
  49. {{ end }}
  50. {{ end }}