Skip to content

Commit

Permalink
simplify voting page
Browse files Browse the repository at this point in the history
  • Loading branch information
thoherr committed Oct 21, 2024
1 parent 0671c14 commit 56c08f2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/voting.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ html {
padding: 2%;
}

.VotingExhibit {
font-size: x-large;
}

.VotingButton input {
font-size: x-large;
}
12 changes: 6 additions & 6 deletions app/views/votes/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<h2><%= @exhibit.event_title %></h2>
<% voting_scope = @event.current_voting_scope %>
<% if voting_scope.blank? %>
<p><%= t('voting_closed') %></p>
<p><%= t('check_voting_times') %></p>
<% else %>
<h3><%= t(voting_scope + '_voting') %></h3>
<% moctext = "#{@exhibit.name}" %>
<% moctext += " (#{@exhibit.platform_position})" unless @exhibit.platform_position.blank? %>
<h2><%= t(voting_scope + '_voting') %></h2>
<% if @voted_already %>
<p><%= t('voted_already') %> <i><b><%= moctext %></b></i></p>
<p><%= t('voted_already') %></p>
<p class="VotingExhibit"><i><b><%= "#{@exhibit.name}" %></b></i></p>
<p><small><%= "(#{@exhibit.platform_position})" unless @exhibit.platform_position.blank? %></small></p>
<% else %>
<%= form_for @vote, :url => url_for(:controller => 'votes', :action => 'create') do |f| %>
<div class="VotingForm">
<p><%= t('vote_for') %></p>
<p><i><b><%= moctext %></b></i></p>
<p class="VotingExhibit"><i><b><%= "#{@exhibit.name}" %></b></i></p>
<p><small><%= "(#{@exhibit.platform_position})" unless @exhibit.platform_position.blank? %></small></p>
<div class="actions VotingButton">
<%= f.submit t('vote'), :id => 'submit' %>
</div>
Expand Down
4 changes: 2 additions & 2 deletions config/locales/application.de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions config/locales/application.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 56c08f2

Please sign in to comment.