]> projects.mako.cc - selectricity/blob - app/views/election/_progress.rhtml
Fix testcases and also fix errors the testcase brought up
[selectricity] / app / views / election / _progress.rhtml
1 <% progress_steps = [ ['overview', 'General Information'],
2                       ['candidates', 'Candidates'],
3                       ['voters', 'Voters'],
4                       ['review', 'Review'] ] %>
5 <h2>Progress</h2>
6 <div id="election_creation_progress_bar">
7
8 <ul>
9 <% progress_steps.each_with_index do |kv, i| -%>
10   <% step, description = kv -%>
11   <li class="<%= step == page ? 'step_selected' : 'step_unselected' -%>
12              <%= " last" if i + 1 == progress_steps.length -%>
13              ">Step <%= i + 1 %>: <%= description %></li>
14 <% end -%>
15 </ul>
16
17 </div>

Benjamin Mako Hill || Want to submit a patch?