history_entries.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. {{ if .entries }}
  6. <ul>
  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" }}">{{ t "menu.flush_history" }}</a>
  15. </li>
  16. <li>
  17. <a href="{{ route "sharedEntries" }}">{{ t "menu.shared_entries" }}</a>
  18. </li>
  19. </ul>
  20. {{ else }}
  21. <ul>
  22. <li>
  23. <a href="{{ route "sharedEntries" }}">{{ t "menu.shared_entries" }}</a>
  24. </li>
  25. </ul>
  26. {{ end }}
  27. </section>
  28. {{ if not .entries }}
  29. <p class="alert alert-info">{{ t "alert.no_history" }}</p>
  30. {{ else }}
  31. <div class="items">
  32. {{ range .entries }}
  33. <article class="item {{ if $.user.EntrySwipe }}touch-item{{ end }} item-status-{{ .Status }}" data-id="{{ .ID }}">
  34. <div class="item-header" dir="auto">
  35. <span class="item-title">
  36. {{ if ne .Feed.Icon.IconID 0 }}
  37. <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" loading="lazy" alt="{{ .Feed.Title }}">
  38. {{ end }}
  39. <a href="{{ route "readEntry" "entryID" .ID }}">{{ .Title }}</a>
  40. </span>
  41. <span class="category"><a href="{{ route "categoryEntries" "categoryID" .Feed.Category.ID }}">{{ .Feed.Category.Title }}</a></span>
  42. </div>
  43. {{ template "item_meta" dict "user" $.user "entry" . "hasSaveEntry" $.hasSaveEntry }}
  44. </article>
  45. {{ end }}
  46. </div>
  47. {{ template "pagination" .pagination }}
  48. {{ end }}
  49. {{ end }}