]> projects.mako.cc - selectricity-live/commitdiff
Fixed bug introduced in template that fixes some errors.
author<mako@atdot.cc> <>
Wed, 5 Sep 2007 13:09:49 +0000 (09:09 -0400)
committer<mako@atdot.cc> <>
Wed, 5 Sep 2007 13:09:49 +0000 (09:09 -0400)
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">
 <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, 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>
 
 <% end -%>
 </ul>
 

Benjamin Mako Hill || Want to submit a patch?