history_entries.html 1.7 KB

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