]> projects.mako.cc - selectricity-live/blob - app/views/election/_candidate_list.rhtml
fix spelling error
[selectricity-live] / app / views / election / _candidate_list.rhtml
1 <ul id="candidate_list">
2   <% @election.candidates.each do |candidate| %>
3       <% @current_candidate = candidate %>
4       <%= render(:partial => 'election/candidate_line')%>
5     <% end %>
6 </ul>
7
8 <script>
9 function show_candidate_info(id) {
10     Element.hide($("show_candidate_link_" + id));
11     Element.show($("candidate_description_" + id));
12     Element.show($("hide_candidate_link_" + id));
13 }
14
15 function hide_candidate_info(id) {
16     Element.hide($("hide_candidate_link_" + id));
17     Element.hide($("candidate_description_" + id));
18     Element.show($("show_candidate_link_" + id));
19 }
20 </script>

Benjamin Mako Hill || Want to submit a patch?