In the middle of adding custom theme supports. Skin_pictures table added to store...
[selectricity-live] / app / views / election / _candidate_list.rhtml
old mode 100755 (executable)
new mode 100644 (file)
index 74d4c3c..2691f5b
@@ -1,7 +1,20 @@
-<% %>
 <ul id="candidate_list">
   <% @election.candidates.each do |candidate| %>
-    <% @current_candidate = candidate %>
-      <%= render :partial => 'candidate_line' %>
+      <% @current_candidate = candidate %>
+      <%= render(:partial => 'election/candidate_line')%>
     <% end %>
 </ul>
+
+<script>
+function show_candidate_info(id) {
+    Element.hide($("show_candidate_link_" + id));
+    Element.show($("candidate_description_" + id));
+    Element.show($("hide_candidate_link_" + id));
+}
+
+function hide_candidate_info(id) {
+    Element.hide($("hide_candidate_link_" + id));
+    Element.hide($("candidate_description_" + id));
+    Element.show($("show_candidate_link_" + id));
+}
+</script>

Benjamin Mako Hill || Want to submit a patch?