]> projects.mako.cc - selectricity-live/blobdiff - app/views/site/_user_summary.rhtml
The user model has been modified so that it stores the user object itself in the...
[selectricity-live] / app / views / site / _user_summary.rhtml
old mode 100644 (file)
new mode 100755 (executable)
index a231497..310d98c
@@ -7,7 +7,8 @@
 <% else %>
   <ul>
   <% for election in @current_elections %>
-    <li><%= election.name %> (ends <em><%= election.enddate %></em>)</li> 
+    <li><%= link_to election.name, :controller => 'election', :action => 'show', :id => election.id %> (ends in <em><%=
+    distance_of_time_in_words Time.now, election.enddate %></em>)</li> 
   <% end %>
   </ul>
 <% end %>

Benjamin Mako Hill || Want to submit a patch?