]> projects.mako.cc - selectricity-live/blob - app/views/election/_progress.rhtml
40beb60b590931d2f62a7c6b1f8bc8638b4a9840
[selectricity-live] / 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?