]> projects.mako.cc - selectricity/blobdiff - app/views/election/_progress.rhtml
updated db schema
[selectricity] / app / views / election / _progress.rhtml
index 98ee63d3fdfbce471fe5ff5b41ae38eafa549814..e95ccd214087ec995a2c3b62c853d76c447bdf4b 100644 (file)
@@ -1,3 +1,7 @@
+<% progress_steps = [ ['overview', 'General Information'],
+                      ['candidates', 'Candidates'],
+                      ['voters', 'Voters'],
+                      ['review', 'Review'] ] %>
 <h2>Progress</h2>
 
 <div id="progress_bar">
@@ -7,7 +11,7 @@
   <% step, description = kv -%>
   <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?