Permalink
Browse files

Hack to get 'join this project' links to align when looking for is ab…

…sent
  • Loading branch information...
maxhawkins committed Feb 13, 2012
1 parent 4ed32bf commit d0395c1309b67bdfdb4a2074c66ed55e93ce82cd
Showing with 7 additions and 3 deletions.
  1. +7 −3 app/views/home/_project.html.erb
@@ -3,14 +3,18 @@
<%= link_to project, :class => "modal" do %>
<%= image_tag project.image.thumb.url, :alt => project.title, :class => "project-img", :width => 200, :height => 170 %>
<% end %>
- <% unless project.looking_for.all?(&:blank?) %>
- <h4>Looking For:</h4>
+ <h4>
+ <% if project.looking_for.all?(&:blank?) %>
+ &nbsp;
+ <% else %>
+ Looking For:
+ <% end %>
+ </h4>
<ul>
<% project.looking_for.each do |need| %>
<li><%= need %></li>
<% end %>
</ul>
- <% end %>
<%= link_to "Join This Project", new_project_membership_path(project), :class => "inset-button join-button modal" if project.seeking_collaborators %>
</div>

0 comments on commit d0395c1

Please sign in to comment.