bookmark_entries.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. {{ define "title"}}{{ t "page.starred.title" }} ({{ .total }}){{ end }}
  2. {{ define "content"}}
  3. <section class="page-header">
  4. <h1>{{ t "page.starred.title" }} ({{ .total }})</h1>
  5. </section>
  6. {{ if not .entries }}
  7. <p class="alert alert-info">{{ t "alert.no_bookmark" }}</p>
  8. {{ else }}
  9. <div class="pagination-top">
  10. {{ template "pagination" .pagination }}
  11. </div>
  12. <div class="items">
  13. {{ range .entries }}
  14. <article role="article" class="item {{ if $.user.EntrySwipe }}touch-item{{ end }} item-status-{{ .Status }}" data-id="{{ .ID }}">
  15. <div class="item-header" dir="auto">
  16. <span class="item-title">
  17. {{ if ne .Feed.Icon.IconID 0 }}
  18. <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" loading="lazy" alt="{{ .Feed.Title }}">
  19. {{ end }}
  20. <a href="{{ route "starredEntry" "entryID" .ID }}" title="{{ .Title }}">{{ .Title }}</a>
  21. </span>
  22. <span class="category"><a href="{{ route "categoryEntries" "categoryID" .Feed.Category.ID }}">{{ .Feed.Category.Title }}</a></span>
  23. </div>
  24. {{ template "item_meta" dict "user" $.user "entry" . "hasSaveEntry" $.hasSaveEntry }}
  25. </article>
  26. {{ end }}
  27. </div>
  28. <div class="pagination-bottom">
  29. {{ template "pagination" .pagination }}
  30. </div>
  31. {{ end }}
  32. {{ end }}