mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 20:37:59 +01:00
24 lines
1.3 KiB
Text
24 lines
1.3 KiB
Text
h1 Duplicate Reports
|
|
|
|
- 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"]]
|
|
|
|
.block
|
|
.block__header.page__header
|
|
.page__pagination = pagination
|
|
.page__info
|
|
span.block__header__title Display only:
|
|
=> 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)]}"
|
|
|
|
= render PhilomenaWeb.DuplicateReportView, "_list.html", duplicate_reports: @duplicate_reports, conn: @conn
|
|
|
|
.block
|
|
.block__header.block__header--light.page__header
|
|
.page__pagination = pagination
|