Major commit adding about information and more before site goes live.
[selectricity] / app / views / front / _user_summary.rhtml
diff --git a/app/views/front/_user_summary.rhtml b/app/views/front/_user_summary.rhtml
new file mode 100644 (file)
index 0000000..3b541c8
--- /dev/null
@@ -0,0 +1,11 @@
+<% if @current_elections.length < 1 %>
+  <p><em>You have not created any elections.</em></p>
+<% else %>
+  <ul>
+  <% for election in @current_elections %>
+    <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?