history_entries.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {{ define "title"}}{{ t "page.history.title" }} ({{ .total }}){{ end }}
  2. {{ define "content"}}
  3. <section class="page-header">
  4. <h1>{{ t "page.history.title" }} ({{ .total }})</h1>
  5. <ul>
  6. {{ if .entries }}
  7. <li>
  8. <a href="#"
  9. data-confirm="true"
  10. data-url="{{ route "flushHistory" }}"
  11. data-label-question="{{ t "confirm.question" }}"
  12. data-label-yes="{{ t "confirm.yes" }}"
  13. data-label-no="{{ t "confirm.no" }}"
  14. data-label-loading="{{ t "confirm.loading" }}">{{ icon "delete" }}{{ t "menu.flush_history" }}</a>
  15. </li>
  16. {{ end }}
  17. <li>
  18. <a href="{{ route "sharedEntries" }}">{{ icon "share" }}{{ t "menu.shared_entries" }}</a>
  19. </li>
  20. </ul>
  21. </section>
  22. {{ if not .entries }}
  23. <p class="alert alert-info">{{ t "alert.no_history" }}</p>
  24. {{ else }}
  25. <div class="pagination-top">
  26. {{ template "pagination" .pagination }}
  27. </div>
  28. <div class="items">
  29. {{ range .entries }}
  30. <article class="item {{ if $.user.EntrySwipe }}touch-item{{ end }} item-status-{{ .Status }}" data-id="{{ .ID }}">
  31. <div class="item-header" dir="auto">
  32. <span class="item-title">
  33. {{ if ne .Feed.Icon.IconID 0 }}
  34. <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" loading="lazy" alt="{{ .Feed.Title }}">
  35. {{ end }}
  36. <a href="{{ route "readEntry" "entryID" .ID }}" title="{{ .Title }}">{{ .Title }}</a>
  37. </span>
  38. <span class="category"><a href="{{ route "categoryEntries" "categoryID" .Feed.Category.ID }}">{{ .Feed.Category.Title }}</a></span>
  39. </div>
  40. {{ template "item_meta" dict "user" $.user "entry" . "hasSaveEntry" $.hasSaveEntry }}
  41. </article>
  42. {{ end }}
  43. </div>
  44. <div class="pagination-bottom">
  45. {{ template "pagination" .pagination }}
  46. </div>
  47. {{ end }}
  48. {{ end }}