Major commit adding about information and more before site goes live.
[selectricity-live] / app / views / about / _sidebar.rhtml
diff --git a/app/views/about/_sidebar.rhtml b/app/views/about/_sidebar.rhtml
new file mode 100644 (file)
index 0000000..a624e0d
--- /dev/null
@@ -0,0 +1,28 @@
+<h2>Information and Documentation</h2>
+
+<% steps = [ ['overview', 'Overview'],
+             ['features', 'Major Features' ],
+#             ['why', 'Why Selectricity?' ],
+             ['team', 'The Team'],
+             ['thanks', 'Acknowledgements'],
+             ['privacy', 'Privacy Policy' ],
+             ['anywhere', 'Selectricity Anywhere'] ] %>
+
+<div id="progress_bar">
+
+<ul>
+<% steps.each_with_index do |kv, i| -%>
+  <% step, description = *kv %>
+  <li class="<%= step == page ? 'step_selected' : 'step_unselected' -%><%=
+    " last" if i + 1 == steps.length -%>">
+    <% if step == page %>
+      <%= description  %>
+    <% else %>
+      <%= link_to description, :action => step %>
+    <% end %>
+  </li>
+<% end %>
+</ul>
+
+</div> 
+

Benjamin Mako Hill || Want to submit a patch?