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 .col
a.btn.btn-primary href=new_contest_completion_path(@contest, contestant_id: contestant.id) a.btn.btn-primary href=new_contest_completion_path(@contest, contestant_id: contestant.id)
= t("helpers.buttons.add") = 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")

View File

@@ -188,7 +188,11 @@ en:
destroy: destroy:
notice: Participant deleted notice: Participant deleted
edit: edit:
end_image: End image
notice: Participant updated notice: Participant updated
not_finished: Not yet finished
offline_participation: Offline participation
start_image: Start image
title: Participant title: Participant
team_title: Teams team_title: Teams
finalize_import: finalize_import:

View File

@@ -159,7 +159,11 @@ fr:
destroy: destroy:
notice: Participant.e supprimé.e notice: Participant.e supprimé.e
edit: edit:
end_image: Image de fin
notice: Participant.e modifié.e notice: Participant.e modifié.e
not_finished: Non terminé
offline_participation: Participation hors-ligne
start_time: Image de début
title: Participant.e title: Participant.e
team_title: Équipe team_title: Équipe
finalize_import: finalize_import: