1 <% progress_steps = [ ['overview', 'General Information'],
2 ['candidates', 'Candidates'],
4 ['review', 'Review'] ] %>
5 <div id="election_creation_progress_bar">
8 <% progress_steps.each_with_index do |kv, i| -%>
9 <% step, description = kv -%>
10 <li class="<%= step == progress ? 'step_selected' : 'step_unselected' -%>
11 <%= " last" if i + 1 == progress_steps.length -%>
12 ">Step <%= i + 1 %>: <%= description %></li>