Contestant view: show offline participation images
Some checks failed
CI / scan_ruby (push) Failing after 16s
CI / scan_js (push) Successful in 15s
CI / lint (push) Successful in 15s
CI / test (push) Successful in 37s

This commit is contained in:
sto
2025-11-06 11:05:09 +01:00
parent cd032e3456
commit ae5082fff6
3 changed files with 28 additions and 0 deletions

View File

@@ -72,3 +72,23 @@
.col
a.btn.btn-primary href=new_contest_completion_path(@contest, contestant_id: contestant.id)
= t("helpers.buttons.add")
- if contestant.offline.present?
.row.mt-5.mb-2
.col
h3 = t("contestants.edit.offline_participation")
.row.mb-5
.col-6
h4 = t("contestants.edit.start_image")
- if contestant.offline.images.length > 0
.mt-3.mb-1
= contestant.offline.start_time.to_fs(:rfc822)
= image_tag(contestant.offline.images[0], class: "img-fluid", style: "max-height: 400px")
.col-6
h4 = t("contestants.edit.end_image")
- if contestant.offline.images.length > 1
.mt-3.mb-1
= contestant.offline.end_time.to_fs(:rfc822)
= image_tag(contestant.offline.images[1], class: "img-fluid", style: "max-height: 400px")
- else
= t("contestants.edit.not_finished")