]> projects.mako.cc - selectricity-live/blobdiff - app/views/election/_candidate_line_edit.rhtml
Oh oops, left in some test cruft in quickvote_controller
[selectricity-live] / app / views / election / _candidate_line_edit.rhtml
index ea20a4fd6e6ab718511c535f4f6700371cf510ff..78f8580655b79453930bcdf8638fcb18fed840c3 100644 (file)
       <% if @current_candidate.picture? %>
       <img src="<%= url_for :action => 'candidate_picture',
                             :id => @current_candidate.id %>"
       <% if @current_candidate.picture? %>
       <img src="<%= url_for :action => 'candidate_picture',
                             :id => @current_candidate.id %>"
-           align="top" />
+           align="top" width="80px" />
       <% end %>
       </td>
       <% end %>
       </td>
+      <% if @current_candidate.description.length > 0 %>
       <td valign="top">
         <em>Description:</em><br />
          <%= h(@current_candidate.description) %>
       <td valign="top">
         <em>Description:</em><br />
          <%= h(@current_candidate.description) %>
-    </td></tr></table>
+      </td>
+      <% else %>
+      <td></td>
+      <% end %>
+    </tr></table>
     </blockquote>
 </p>
 </div>
     </blockquote>
 </p>
 </div>

Benjamin Mako Hill || Want to submit a patch?