Major commit adding about information and more before site goes live.
[selectricity-live] / app / views / election / _progress.rhtml
index 520894cdb79ec4d2ffd5304cc7f04b88a5b182ad..98ee63d3fdfbce471fe5ff5b41ae38eafa549814 100644 (file)
@@ -1,15 +1,13 @@
-<% progress_steps = [ ['overview', 'General Information'],
-                      ['candidates', 'Candidates'],
-                      ['voters', 'Voters'],
-                      ['review', 'Review'] ] %>
-<div id="election_creation_progress_bar">
+<h2>Progress</h2>
+
+<div id="progress_bar">
 
 <ul>
 <% progress_steps.each_with_index do |kv, i| -%>
   <% step, description = kv -%>
-  <li class="<%= step == progress ? 'step_selected' : 'step_unselected' -%>
+  <li class="<%= step == page ? 'step_selected' : 'step_unselected' -%>
              <%= " last" if i + 1 == progress_steps.length -%>
-             ">Step <%= i + 1 %>: <%= description %></li>
+             ">Step <%= {i + 1 %>: <%= description %></li>
 <% end -%>
 </ul>
 

Benjamin Mako Hill || Want to submit a patch?