]> projects.mako.cc - selectricity/blob - app/views/election/_progress.rhtml
98ee63d3fdfbce471fe5ff5b41ae38eafa549814
[selectricity] / app / views / election / _progress.rhtml
1 <h2>Progress</h2>
2
3 <div id="progress_bar">
4
5 <ul>
6 <% progress_steps.each_with_index do |kv, i| -%>
7   <% step, description = kv -%>
8   <li class="<%= step == page ? 'step_selected' : 'step_unselected' -%>
9              <%= " last" if i + 1 == progress_steps.length -%>
10              ">Step <%= {i + 1 %>: <%= description %></li>
11 <% end -%>
12 </ul>
13
14 </div>

Benjamin Mako Hill || Want to submit a patch?