]> projects.mako.cc - selectricity-live/blob - app/views/election/_progress.rhtml
added yaml_db plugin
[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
7 <div id="progress_bar">
8
9 <ul>
10 <% progress_steps.each_with_index do |kv, i| -%>
11   <% step, description = kv -%>
12   <li class="<%= step == page ? 'step_selected' : 'step_unselected' -%>
13              <%= " last" if i + 1 == progress_steps.length -%>
14              ">Step <%= i + 1 %>: <%= description %></li>
15 <% end -%>
16 </ul>
17
18 </div>

Benjamin Mako Hill || Want to submit a patch?