X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/ffec26b00fc14b92f82137e1e3c62ce78c93ea24..b436d3fd0e673b4f5bcc01f0e7cce39ff0e40f82:/app/views/account/summary.rhtml diff --git a/app/views/account/summary.rhtml b/app/views/account/summary.rhtml index 2f24e28..4d79f5b 100644 --- a/app/views/account/summary.rhtml +++ b/app/views/account/summary.rhtml @@ -1,4 +1,9 @@ -
E-mail: <%=h @user.email %>
@@ -6,47 +11,34 @@ 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 %> | -- <% if election.anonymous == 0 -%> - No - <% else -%> - Yes - <% end -%> + | <%=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 %> |
- <%=h election.startdate.strftime("%x") %> | -<%=h election.enddate.strftime("%x") %> | -- <% if election.notices == 0 -%> - No - <% else -%> - Yes - <% end -%> - | -<%=h election.election_method %> | +
<%= link_to "Create a new election", :controller => 'election', :action => 'new' %>.
+ +Your Quickvotes: @@ -82,3 +74,4 @@ Your Quickvotes: <% end %>
<%= link_to( "Create a new QuickVote", :controller => 'quickvote', :action => 'create') %>.