]> projects.mako.cc - selectricity/blobdiff - app/views/election/_progress.rhtml
two minor changes that fix bugs with the quickvote
[selectricity] / app / views / election / _progress.rhtml
index 520894cdb79ec4d2ffd5304cc7f04b88a5b182ad..e95ccd214087ec995a2c3b62c853d76c447bdf4b 100644 (file)
@@ -2,12 +2,14 @@
                       ['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>
 <% end -%>

Benjamin Mako Hill || Want to submit a patch?