category_feeds.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {{ define "title"}}{{ .category.Title }} > {{ t "page.feeds.title" }} ({{ .total }}){{ end }}
  2. {{ define "page_header"}}
  3. <section class="page-header" aria-labelledby="page-header-title">
  4. <h1 id="page-header-title" dir="auto">
  5. {{ .category.Title }} <span aria-hidden="true">&gt;</span> {{ t "page.feeds.title" }}
  6. <span aria-hidden="true"> ({{ .total }})</span>
  7. </h1>
  8. <span class="sr-only">{{ plural "page.categories.feed_count" .total .total }}</span>
  9. <nav aria-label="{{ .category.Title }} {{ t "page.feeds.title" }} {{ t "menu.title" }}">
  10. <ul>
  11. <li>
  12. <a href="{{ route "categoryEntries" "categoryID" .category.ID }}">{{ icon "entries" }}{{ t "menu.feed_entries" }}</a>
  13. </li>
  14. <li>
  15. <a href="{{ route "editCategory" "categoryID" .category.ID }}">{{ icon "edit" }}{{ t "menu.edit_category" }}</a>
  16. </li>
  17. {{ if eq .total 0 }}
  18. <li>
  19. <a href="#"
  20. role="button"
  21. data-confirm="true"
  22. data-label-question="{{ t "confirm.question" }}"
  23. data-label-yes="{{ t "confirm.yes" }}"
  24. data-label-no="{{ t "confirm.no" }}"
  25. data-label-loading="{{ t "confirm.loading" }}"
  26. data-redirect-url="{{ route "categories" }}"
  27. data-url="{{ route "removeCategory" "categoryID" .category.ID }}">{{ icon "delete" }}{{ t "action.remove" }}</a>
  28. </li>
  29. {{ end }}
  30. <li>
  31. <a role="button" href="{{ route "refreshCategoryFeedsPage" "categoryID" .category.ID }}">{{ icon "refresh" }}{{ t "menu.refresh_all_feeds" }}</a>
  32. </li>
  33. </ul>
  34. </nav>
  35. </section>
  36. {{ end }}
  37. {{ define "content"}}
  38. {{ if not .feeds }}
  39. <p role="alert" class="alert">{{ t "alert.no_feed_in_category" }}</p>
  40. {{ else }}
  41. {{ template "feed_list" dict "user" .user "feeds" .feeds "ParsingErrorCount" .ParsingErrorCount }}
  42. {{ end }}
  43. {{ end }}