X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/3ebaed889614cc7bdf66dd2456c48d69b3fb2507..ee280d9250b5b4c925cc6b4809ce40437d600e7d:/app/views/account/summary.rhtml?ds=sidebyside diff --git a/app/views/account/summary.rhtml b/app/views/account/summary.rhtml index d15e442..4d79f5b 100644 --- a/app/views/account/summary.rhtml +++ b/app/views/account/summary.rhtml @@ -1,4 +1,9 @@ -
E-mail: <%=h @user.email %>
@@ -8,38 +13,30 @@ Member since: <%=h @user.created_at.strftime("%x") %>
Your Elections:
<%= column.human_name %> | + <% ["Name", "Description", "Details"].each do |column| -%> +<%= column %> | <% end -%>|||||||
---|---|---|---|---|---|---|---|---|
- <% if election.active == 1 -%> + | <%= link_to "#{election.name}", :controller => 'election', :action => 'show', :id => election %> - <% else -%> - <%=h election.name %> - <% end -%> | -<%=h election.description %> | -<%=h election.startdate.strftime("%x") %> | -<%=h election.enddate.strftime("%x") %> | -- <% if election.notices == 0 -%> - No - <% else -%> - Yes - <% end -%> - | -<%=h election.election_method %> | +<%=h election.description %> | +
+ Start: <%=h election.startdate.strftime("%x") %> + End: <%=h election.enddate.strftime("%x") %> + Method: <%=h ELECTION_TYPES[election.election_method] %> + Open: <%= (not election.authenticated?).to_s.capitalize %> + |
+
<%= link_to "Create a new election", :controller => 'election', :action => 'new' %>.
<%= link_to( "Create a new QuickVote", :controller => 'quickvote', :action => 'create') %>.