projects
/
selectricity-live
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Variety of small changes (mostly to properties) plus a few "in the
[selectricity-live]
/
app
/
views
/
quickvote
/
_result.rhtml
diff --git
a/app/views/quickvote/_result.rhtml
b/app/views/quickvote/_result.rhtml
old mode 100644
(file)
new mode 100755
(executable)
index
a326459
..
e10890a
--- a/
app/views/quickvote/_result.rhtml
+++ b/
app/views/quickvote/_result.rhtml
@@
-1,10
+1,10
@@
<% %>
<% if result.winner? and result.winners.length == 1%>
<p><em>The winner is:
<% %>
<% if result.winner? and result.winners.length == 1%>
<p><em>The winner is:
- <strong><%= @candidates[result.winner].name %></strong></em></p>
+ <strong><%= @candidates[result.winner].name
.capitalize
%></strong></em></p>
<% elsif result.winner? and result.winners.length > 1 %>
<p><em>There was a tie. The winners are: <strong><%=
<% elsif result.winner? and result.winners.length > 1 %>
<p><em>There was a tie. The winners are: <strong><%=
- result.winners.collect {|w| @candidates[w]}.join(", ") %></strong></em></p>
+ result.winners.collect {|w| @candidates[w]
.to_s.capitalize
}.join(", ") %></strong></em></p>
<% else %>
<p><em>There is no winner using this method. </em></strong></p>
<% end %>
<% else %>
<p><em>There is no winner using this method. </em></strong></p>
<% end %>
Benjamin Mako Hill
||
Want to submit a patch?