Contestant view: show offline participation images
This commit is contained in:
@@ -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")
|
||||||
@@ -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:
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user