* refactored the system so that it keeps pictures in a seperate table
[selectricity] / app / views / election / _progress.rhtml
diff --git a/app/views/election/_progress.rhtml b/app/views/election/_progress.rhtml
new file mode 100644 (file)
index 0000000..520894c
--- /dev/null
@@ -0,0 +1,16 @@
+<% progress_steps = [ ['overview', 'General Information'],
+                      ['candidates', 'Candidates'],
+                      ['voters', 'Voters'],
+                      ['review', 'Review'] ] %>
+<div id="election_creation_progress_bar">
+
+<ul>
+<% progress_steps.each_with_index do |kv, i| -%>
+  <% step, description = kv -%>
+  <li class="<%= step == progress ? 'step_selected' : 'step_unselected' -%>
+             <%= " last" if i + 1 == progress_steps.length -%>
+             ">Step <%= i + 1 %>: <%= description %></li>
+<% end -%>
+</ul>
+
+</div>

Benjamin Mako Hill || Want to submit a patch?