From 1633d6c9b98f425d1ad33c1dd61a63b7365ff54c Mon Sep 17 00:00:00 2001
From:
Date: Mon, 11 Feb 2008 10:49:18 -0500
Subject: [PATCH] fix typos and minor issues
---
app/views/common/_methodinfo_ssd.rhtml | 2 +-
app/views/front/_user_summary.rhtml | 8 ++++++--
app/views/layouts/frontpage.rhtml | 2 +-
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/app/views/common/_methodinfo_ssd.rhtml b/app/views/common/_methodinfo_ssd.rhtml
index 0c8dc95..6b6d42f 100644
--- a/app/views/common/_methodinfo_ssd.rhtml
+++ b/app/views/common/_methodinfo_ssd.rhtml
@@ -3,7 +3,7 @@ preference (from most preferred to least preferred):
<% @election.ssd_result.ranked_candidates.each do |place| %>
- - <%= h(place.collect {|c| @names[c].capitalize}.join( " and " )) %>
+
- <%= h(place.collect {|c| @names[c].capitalize}.join( " and " )) %>
<%= "(TIE)" if place.length > 1 %>
<% end %>
diff --git a/app/views/front/_user_summary.rhtml b/app/views/front/_user_summary.rhtml
index ce65bba..30b3799 100644
--- a/app/views/front/_user_summary.rhtml
+++ b/app/views/front/_user_summary.rhtml
@@ -3,8 +3,12 @@
<% else %>
<% for election in @current_elections %>
- - <%= link_to election.name, :controller => 'election', :action => 'show', :id => election.id %> (ends in <%=
- distance_of_time_in_words Time.now, election.enddate %>)
+ - <%= link_to election.name, :controller => 'election', :action => 'show', :id => election.id %>
+ <% if Time.now > election.enddate %>
+ (election over)
+ <% else %>
+ (ends in <%= distance_of_time_in_words Time.now, election.enddate %>)
+ <% end %>
<% end %>
<% end %>
diff --git a/app/views/layouts/frontpage.rhtml b/app/views/layouts/frontpage.rhtml
index 570a4f3..2ebf153 100644
--- a/app/views/layouts/frontpage.rhtml
+++ b/app/views/layouts/frontpage.rhtml
@@ -13,7 +13,7 @@