diff options
author | Marius Peter <marius.peter@tutanota.com> | 2025-01-01 14:37:12 +0100 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2025-01-01 14:37:12 +0100 |
commit | 8ecae24f6c47476fbf53c5fd04089e7e093d7279 (patch) | |
tree | cb3ae32d67ea5ac5256ceddc9f1e28cbfcc4ae27 | |
parent | bcd73c5548666bae7fef57e7e22cb61126308259 (diff) |
Code of honor images.
-rw-r--r-- | app/assets/images/baboon_reading_code_of_honor.webp | bin | 0 -> 620128 bytes | |||
-rw-r--r-- | app/assets/images/baboon_scoring_sheet.webp | bin | 0 -> 590800 bytes | |||
-rw-r--r-- | app/views/home/_code_of_honor.html.erb | 10 |
3 files changed, 10 insertions, 0 deletions
diff --git a/app/assets/images/baboon_reading_code_of_honor.webp b/app/assets/images/baboon_reading_code_of_honor.webp Binary files differnew file mode 100644 index 0000000..dd380b1 --- /dev/null +++ b/app/assets/images/baboon_reading_code_of_honor.webp diff --git a/app/assets/images/baboon_scoring_sheet.webp b/app/assets/images/baboon_scoring_sheet.webp Binary files differnew file mode 100644 index 0000000..ac8da98 --- /dev/null +++ b/app/assets/images/baboon_scoring_sheet.webp diff --git a/app/views/home/_code_of_honor.html.erb b/app/views/home/_code_of_honor.html.erb index f2a306d..cd1950b 100644 --- a/app/views/home/_code_of_honor.html.erb +++ b/app/views/home/_code_of_honor.html.erb @@ -1,5 +1,15 @@ <div id="code-of-honor" class="<%= session[:agreed_to_code_of_honor] ? 'accepted' : 'rejected' %>"> <h2>Code d'Honneur</h2> + <% if session[:agreed_to_code_of_honor] %> + <%= image_tag("baboon_scoring_sheet.webp", + alt: "Baboon reviewing a scoring sheet", + id: "baboon-scoring", + width: "100%") %> + <% else %> + <%= image_tag("baboon_reading_code_of_honor.webp", + alt: "Baboon reviewing a scoring sheet", + id: "baboon-scoring", + width: "100%") %> <% end %> <p> Tout Tartifleur s'engage à voter dans le respect de la tradition de la WTT. Il ou elle se doit de voter en toute |