feed_entries.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {{ define "title"}}{{ .feed.Title }} ({{ .total }}){{ end }}
  2. {{ define "content"}}
  3. <section class="page-header">
  4. <h1>{{ .feed.Title }} ({{ .total }})</h1>
  5. <ul>
  6. <li>
  7. <a href="{{ route "refreshFeed" "feedID" .feed.ID }}">{{ t "Refresh" }}</a>
  8. </li>
  9. <li>
  10. <a href="{{ route "editFeed" "feedID" .feed.ID }}">{{ t "Edit" }}</a>
  11. </li>
  12. {{ if .entries }}
  13. <li>
  14. <a href="#" data-on-click="markPageAsRead">{{ t "Mark this page as read" }}</a>
  15. </li>
  16. {{ end }}
  17. </ul>
  18. </section>
  19. {{ if ne .feed.ParsingErrorCount 0 }}
  20. <div class="alert alert-error">
  21. <h3>{{ t "There is a problem with this feed" }}</h3>
  22. <p>{{ t .feed.ParsingErrorMsg }}</p>
  23. </div>
  24. {{ else if not .entries }}
  25. <p class="alert">{{ t "There is no article for this feed." }}</p>
  26. {{ else }}
  27. <div class="items">
  28. {{ range .entries }}
  29. <article class="item touch-item item-status-{{ .Status }}" data-id="{{ .ID }}">
  30. <div class="item-header">
  31. <span class="item-title">
  32. {{ if ne .Feed.Icon.IconID 0 }}
  33. <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" alt="{{ .Feed.Title }}">
  34. {{ end }}
  35. <a href="{{ route "feedEntry" "feedID" .Feed.ID "entryID" .ID }}">{{ .Title }}</a>
  36. </span>
  37. <span class="category"><a href="{{ route "categoryEntries" "categoryID" .Feed.Category.ID }}">{{ .Feed.Category.Title }}</a></span>
  38. </div>
  39. {{ template "item_meta" dict "user" $.user "entry" . "hasSaveEntry" $.hasSaveEntry }}
  40. </article>
  41. {{ end }}
  42. </div>
  43. {{ template "pagination" .pagination }}
  44. {{ end }}
  45. {{ end }}