]> projects.mako.cc - selectricity-live/blobdiff - app/views/election/_candidate_line_edit.rhtml
Reorganized the README file and added a short list of dependencies.
[selectricity-live] / app / views / election / _candidate_line_edit.rhtml
old mode 100644 (file)
new mode 100755 (executable)
index ea20a4f..78f8580
       <% 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?