history.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {{ define "title"}}{{ t "History" }} ({{ .total }}){{ end }}
  2. {{ define "content"}}
  3. <section class="page-header">
  4. <h1>{{ t "History" }} ({{ .total }})</h1>
  5. </section>
  6. {{ if not .entries }}
  7. <p class="alert alert-info">{{ t "There is no history at the moment." }}</p>
  8. {{ else }}
  9. <div class="items">
  10. {{ range .entries }}
  11. <article class="item item-status-{{ .Status }}" data-id="{{ .ID }}">
  12. <div class="item-header">
  13. <span class="item-title">
  14. {{ if ne .Feed.Icon.IconID 0 }}
  15. <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16">
  16. {{ end }}
  17. <a href="{{ route "readEntry" "entryID" .ID }}">{{ .Title }}</a>
  18. </span>
  19. <span class="category"><a href="{{ route "categoryEntries" "categoryID" .Feed.Category.ID }}">{{ .Feed.Category.Title }}</a></span>
  20. </div>
  21. <div class="item-meta">
  22. <ul>
  23. <li>
  24. <a href="{{ route "feedEntries" "feedID" .Feed.ID }}" title="{{ .Feed.Title }}">{{ domain .Feed.SiteURL }}</a>
  25. </li>
  26. <li>
  27. <time datetime="{{ isodate .Date }}" title="{{ isodate .Date }}">{{ elapsed .Date }}</time>
  28. </li>
  29. <li>
  30. <a href="{{ .URL }}" target="_blank" rel="noopener noreferrer" referrerpolicy="no-referrer" data-original-link="true">{{ t "Original" }}</a>
  31. </li>
  32. </ul>
  33. </div>
  34. </article>
  35. {{ end }}
  36. </div>
  37. {{ template "pagination" .pagination }}
  38. {{ end }}
  39. {{ end }}