category_entries.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {{ define "title"}}{{ .category.Title }} ({{ .total }}){{ end }}
  2. {{ define "content"}}
  3. <section class="page-header">
  4. <h1>{{ .category.Title }} ({{ .total }})</h1>
  5. {{ if .entries }}
  6. <ul>
  7. <li>
  8. <a href="#" data-on-click="markPageAsRead">{{ t "menu.mark_page_as_read" }}</a>
  9. </li>
  10. </ul>
  11. {{ end }}
  12. </section>
  13. {{ if not .entries }}
  14. <p class="alert">{{ t "alert.no_category_entry" }}</p>
  15. {{ else }}
  16. <div class="items">
  17. {{ range .entries }}
  18. <article class="item touch-item item-status-{{ .Status }}" data-id="{{ .ID }}">
  19. <div class="item-header">
  20. <span class="item-title">
  21. {{ if ne .Feed.Icon.IconID 0 }}
  22. <img src="{{ route "icon" "iconID" .Feed.Icon.IconID }}" width="16" height="16" alt="{{ .Feed.Title }}">
  23. {{ end }}
  24. <a href="{{ route "categoryEntry" "categoryID" .Feed.Category.ID "entryID" .ID }}">{{ .Title }}</a>
  25. </span>
  26. <span class="category"><a href="{{ route "categoryEntries" "categoryID" .Feed.Category.ID }}">{{ .Feed.Category.Title }}</a></span>
  27. </div>
  28. {{ template "item_meta" dict "user" $.user "entry" . "hasSaveEntry" $.hasSaveEntry }}
  29. </article>
  30. {{ end }}
  31. </div>
  32. <section class="page-footer">
  33. {{ if .entries }}
  34. <ul>
  35. <li>
  36. <a href="#" data-on-click="markPageAsRead">{{ t "menu.mark_page_as_read" }}</a>
  37. </li>
  38. </ul>
  39. {{ end }}
  40. </section>
  41. {{ template "pagination" .pagination }}
  42. {{ end }}
  43. {{ end }}