Working on a step-by-step workflow audit.
[selectricity] / app / views / site / _user_summary.rhtml
diff --git a/app/views/site/_user_summary.rhtml b/app/views/site/_user_summary.rhtml
new file mode 100644 (file)
index 0000000..a231497
--- /dev/null
@@ -0,0 +1,17 @@
+<% %>
+
+<h2>Activity Summary</h2>
+
+<% if @current_elections.length < 1 %>
+  <em>You have not created any elections.</em>
+<% else %>
+  <ul>
+  <% for election in @current_elections %>
+    <li><%= election.name %> (ends <em><%= election.enddate %></em>)</li> 
+  <% end %>
+  </ul>
+<% end %>
+
+<p><%= link_to "Create a new election", :controller => 'election', :action => 'new' %></p>
+<p></p>
+

Benjamin Mako Hill || Want to submit a patch?