Major commit adding about information and more before site goes live.
[selectricity-live] / app / views / about / _sidebar.rhtml
1 <h2>Information and Documentation</h2>
2
3 <% steps = [ ['overview', 'Overview'],
4              ['features', 'Major Features' ],
5 #             ['why', 'Why Selectricity?' ],
6              ['team', 'The Team'],
7              ['thanks', 'Acknowledgements'],
8              ['privacy', 'Privacy Policy' ],
9              ['anywhere', 'Selectricity Anywhere'] ] %>
10
11 <div id="progress_bar">
12
13 <ul>
14 <% steps.each_with_index do |kv, i| -%>
15   <% step, description = *kv %>
16   <li class="<%= step == page ? 'step_selected' : 'step_unselected' -%><%=
17     " last" if i + 1 == steps.length -%>">
18     <% if step == page %>
19       <%= description  %>
20     <% else %>
21       <%= link_to description, :action => step %>
22     <% end %>
23   </li>
24 <% end %>
25 </ul>
26
27 </div> 
28

Benjamin Mako Hill || Want to submit a patch?