philomena/lib/philomena_web/templates/image/reporting/show.html.slime

23 lines
1 KiB
Text
Raw Normal View History

2019-12-04 05:14:56 +01:00
a href=Routes.image_report_path(@conn, :new, @image)
button.button.button--link
i.fa.fa-exclamation-triangle>
' General reporting
.report-duplicate
- checked = Enum.any?(@dupe_reports, & &1.state == "open")
input.toggle-box id="image-dedupe" type="checkbox" checked=checked
label for="image-dedupe" Updating/merging
.toggle-box-container
.toggle-box-container__content
= if @conn.assigns.current_user do
= render PhilomenaWeb.DuplicateReportView, "_form.html", image: @image, conn: @conn, changeset: @changeset
- else
p
' You must
a> href=Routes.pow_session_path(@conn, :new) log in
' to report duplicate images.
h4 Existing duplicate reports
2019-12-04 05:18:49 +01:00
= render PhilomenaWeb.DuplicateReportView, "_list.html", duplicate_reports: Enum.filter(@dupe_reports, & &1.duplicate_of_image_id == @image.id), conn: @conn
= render PhilomenaWeb.DuplicateReportView, "_list.html", duplicate_reports: Enum.filter(@dupe_reports, & &1.image_id == @image.id), conn: @conn