From 56c08f275414bd5a16b636112a5975286103d175 Mon Sep 17 00:00:00 2001 From: Thomas Herrmann Date: Mon, 21 Oct 2024 15:50:45 +0200 Subject: [PATCH] simplify voting page --- app/assets/stylesheets/voting.css.scss | 4 ++++ app/views/votes/new.html.erb | 12 ++++++------ config/locales/application.de.yml | 4 ++-- config/locales/application.en.yml | 4 ++-- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/app/assets/stylesheets/voting.css.scss b/app/assets/stylesheets/voting.css.scss index ceb0738..a385cef 100644 --- a/app/assets/stylesheets/voting.css.scss +++ b/app/assets/stylesheets/voting.css.scss @@ -40,6 +40,10 @@ html { padding: 2%; } +.VotingExhibit { + font-size: x-large; +} + .VotingButton input { font-size: x-large; } diff --git a/app/views/votes/new.html.erb b/app/views/votes/new.html.erb index 56c7fc3..5ab71ed 100644 --- a/app/views/votes/new.html.erb +++ b/app/views/votes/new.html.erb @@ -1,19 +1,19 @@ -

<%= @exhibit.event_title %>

<% voting_scope = @event.current_voting_scope %> <% if voting_scope.blank? %>

<%= t('voting_closed') %>

<%= t('check_voting_times') %>

<% else %> -

<%= t(voting_scope + '_voting') %>

- <% moctext = "#{@exhibit.name}" %> - <% moctext += " (#{@exhibit.platform_position})" unless @exhibit.platform_position.blank? %> +

<%= t(voting_scope + '_voting') %>

<% if @voted_already %> -

<%= t('voted_already') %> <%= moctext %>

+

<%= t('voted_already') %>

+

<%= "#{@exhibit.name}" %>

+

<%= "(#{@exhibit.platform_position})" unless @exhibit.platform_position.blank? %>

<% else %> <%= form_for @vote, :url => url_for(:controller => 'votes', :action => 'create') do |f| %>

<%= t('vote_for') %>

-

<%= moctext %>

+

<%= "#{@exhibit.name}" %>

+

<%= "(#{@exhibit.platform_position})" unless @exhibit.platform_position.blank? %>

<%= f.submit t('vote'), :id => 'submit' %>
diff --git a/config/locales/application.de.yml b/config/locales/application.de.yml index bce0c79..2b9ef93 100644 --- a/config/locales/application.de.yml +++ b/config/locales/application.de.yml @@ -187,14 +187,14 @@ de: exhibit_size_missing: "MOC-Größe fehlt!" heading_id: "ID" vote: "Abstimmen!" - voted_already: "Danke für Deine Stimme für" + voted_already: "Du hast gestimmt für" link_create_voting_card: "MOC-Wahl-Karte" import_exhibit_csv: "CSV mit MOC-Daten importieren" export_exhibit_csv: "CSV Datei der MOCs exportieren" table_position: "Position (Tisch.LfdNr)" no_file_added: "Keine Datei angegeben" only_csv_files_allowed: "Nur CSV-Dateien können importiert werden" - vote_for: "Ich möchte abstimmen für das MOC" + vote_for: "Abstimmen für" voting_poster_intro: "Gefällt Dir das Modell?" voting_poster_instruction: "Dann scanne den Code und gibt Deine Stimme ab!" exhibit_voting_results_for: "Ergebnisse der MOC-Wahl für" diff --git a/config/locales/application.en.yml b/config/locales/application.en.yml index 456f4d6..65239e8 100644 --- a/config/locales/application.en.yml +++ b/config/locales/application.en.yml @@ -187,14 +187,14 @@ en: exhibit_size_missing: "size of MOC missing!" heading_id: "ID" vote: "Count my vote!" - voted_already: "Thank you for your vote for" + voted_already: "You voted for" link_create_voting_card: "MOC Voting Card" import_exhibit_csv: "Import CSV for MOCs" export_exhibit_csv: "Export MOCs as CSV file" table_position: "Position (table.number)" no_file_added: "No file added" only_csv_files_allowed: "Only CSV files allowed" - vote_for: "I'd like to vote for MOC" + vote_for: "Vote for" voting_poster_intro: "You like the model?" voting_poster_instruction: "Then scan the code and cast your vote!" exhibit_voting_results_for: "Results of the MOC voting for"