X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/eed818c2f36f08638c65244ea79485b87cb7ddc8..24d7ecbc8af868040b1195acd1ed308b8b83e984:/app/views/account/summary.rhtml diff --git a/app/views/account/summary.rhtml b/app/views/account/summary.rhtml index 5af431b..0ea9f24 100644 --- a/app/views/account/summary.rhtml +++ b/app/views/account/summary.rhtml @@ -13,35 +13,23 @@ 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") %> | -<%=h election.election_method %> | -- <% if election.authenticated? %> - Yes - <% else -%> - No - <% 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 %> |