4
0

category_feeds.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. {{ define "title"}}{{ .category.Title }} > {{ t "page.feeds.title" }} ({{ .total }}){{ end }}
  2. {{ define "content"}}
  3. <section class="page-header">
  4. <h1 dir="auto">{{ .category.Title }} &gt; {{ t "page.feeds.title" }} ({{ .total }})</h1>
  5. <ul>
  6. <li>
  7. <a href="{{ route "categoryEntries" "categoryID" .category.ID }}">{{ t "menu.feed_entries" }}</a>
  8. </li>
  9. <li>
  10. <a href="{{ route "editCategory" "categoryID" .category.ID }}">{{ t "menu.edit_category" }}</a>
  11. </li>
  12. {{ if eq .total 0 }}
  13. <li>
  14. <a href="#"
  15. data-confirm="true"
  16. data-label-question="{{ t "confirm.question" }}"
  17. data-label-yes="{{ t "confirm.yes" }}"
  18. data-label-no="{{ t "confirm.no" }}"
  19. data-label-loading="{{ t "confirm.loading" }}"
  20. data-redirect-url="{{ route "categories" }}"
  21. data-url="{{ route "removeCategory" "categoryID" .category.ID }}">{{ t "action.remove" }}</a>
  22. </li>
  23. {{ end }}
  24. </ul>
  25. </section>
  26. {{ if not .feeds }}
  27. <p class="alert">{{ t "alert.no_feed_in_category" }}</p>
  28. {{ else }}
  29. {{ template "feed_list" dict "user" .user "feeds" .feeds "ParsingErrorCount" .ParsingErrorCount }}
  30. {{ end }}
  31. {{ end }}