summaryrefslogtreecommitdiff
path: root/app/views/home/_code_of_honor.html.erb
diff options
context:
space:
mode:
authorMarius Peter <marius.peter@tutanota.com>2024-12-29 15:14:43 +0100
committerMarius Peter <marius.peter@tutanota.com>2024-12-29 15:14:43 +0100
commitbe2a93525069de2dfa3c23b0c23e7a9f7ad4c03d (patch)
treeb5493e9d35d024ce7be072ec2168b4a98ba0e63f /app/views/home/_code_of_honor.html.erb
First commit.
Diffstat (limited to 'app/views/home/_code_of_honor.html.erb')
-rw-r--r--app/views/home/_code_of_honor.html.erb14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/home/_code_of_honor.html.erb b/app/views/home/_code_of_honor.html.erb
new file mode 100644
index 0000000..517a73e
--- /dev/null
+++ b/app/views/home/_code_of_honor.html.erb
@@ -0,0 +1,14 @@
+<div id="code-of-honor" class="<%= session[:agreed_to_code_of_honor] ? 'accepted' : 'rejected' %>">
+ <h2>Code d'honneur</h2>
+ <p>
+ Tout Tartifleur s'engage à voter dans le respect de la
+ tradition de la WTT. Il ou elle se doit de voter en toute
+ honnêteté intellectuelle afin de favoriser un résultat mérité
+ !
+ </p>
+ <% if session[:agreed_to_code_of_honor] %>
+ <%= button_to "Renéguer", toggle_code_of_honor_path %>
+ <% else %>
+ <%= button_to "Accepter", toggle_code_of_honor_path %>
+ <% end %>
+</div>
Copyright 2019--2025 Marius PETER