philomena/lib/philomena_web/templates/duplicate_report/index.html.heex
2024-06-01 23:50:36 -04:00

33 lines
1.5 KiB
Text

<h1>
Duplicate Reports
</h1>
<% route = fn p -> ~p"/duplicate_reports?#{p}" end %>
<% pagination = render(PhilomenaWeb.PaginationView, "_pagination.html", page: @duplicate_reports, route: route, conn: @conn, params: [states: @conn.params["states"] || ["open", "claimed"]]) %>
<div class="block">
<div class="block__header page__header">
<div class="page__pagination">
<%= pagination %>
</div>
<div class="page__info">
<span class="block__header__title">
Display only:
</span>
<%= link("Open (All)", to: ~p"/duplicate_reports?#{[states: ~W(open claimed)]}") %>
<%= link("Open (Unclaimed)", to: ~p"/duplicate_reports?#{[states: ~W(open)]}") %>
<%= link("Open (Claimed)", to: ~p"/duplicate_reports?#{[states: ~W(claimed)]}") %>
<%= link("Open + Rejected", to: ~p"/duplicate_reports?#{[states: ~W(open rejected)]}") %>
<%= link("Rejected", to: ~p"/duplicate_reports?#{[states: ~W(rejected)]}") %>
<%= link("Rejected + Accepted", to: ~p"/duplicate_reports?#{[states: ~W(rejected accepted)]}") %>
<%= link("Accepted", to: ~p"/duplicate_reports?#{[states: ~W(accepted)]}") %>
<%= link("All", to: ~p"/duplicate_reports?#{[states: ~W(open rejected accepted claimed)]}") %>
</div>
</div>
<%= render(PhilomenaWeb.DuplicateReportView, "_list.html", duplicate_reports: @duplicate_reports, conn: @conn) %>
<div class="block">
<div class="block__header block__header--light page__header">
<div class="page__pagination">
<%= pagination %>
</div>
</div>
</div>
</div>