Commit dbacb24e
Changed files (1)
app
views
creations
app/views/creations/show.html.erb
@@ -18,15 +18,7 @@
</div>
<div class="row">
- <div class="span1">
- <% if current_user == @creation.user || current_user.already_likes(@creation) %>
-
- <% else %>
- <%= button_to "+1", creation_likes_path(:creation_id => @creation.id), :method => :post %>
- <% end %>
- </div>
- <div class="span3 offset12">
- <%= link_to 'fanclub (' + pluralize(@creation.likes.length, 'fan') + ')', creation_likes_path(:creation_id => @creation.id) %>
+ <div class="span16">
</div>
</div>
@@ -36,11 +28,17 @@
<a href="<%= url_for creation_path(@creation) %>"><img class="thumbnail" src="<%= @creation.image_url(:large).to_s%>" alt="<%= @creation.name %>"></a>
</div>
<div class="row">
- <div class="span6">
- <iframe src="http://www.facebook.com/plugins/like.php?href=<%= request.url %>" scrolling="no" frameborder="0" style="border:none; width:350px; height:30px"></iframe>
+ <div class="span10">
+ <p>
+ submitted on: <%= @creation.created_at.to_s :foomat %> |
+ <%= link_to 'fanclub (' + pluralize(@creation.likes.length, 'fan') + ')', creation_likes_path(:creation_id => @creation.id)%>
+ </p>
</div>
- <div class="span6">
- <p> submitted on: <%= @creation.created_at.to_s :foomat %>
+ <div class="span2">
+ <!-- <iframe src="http://www.facebook.com/plugins/like.php?href=<%= request.url %>" scrolling="no" frameborder="0" style="border:none; width:350px; height:30px"></iframe> -->
+ <% unless current_user == @creation.user || current_user.already_likes(@creation) %>
+ <%= button_to "Like", creation_likes_path(:creation_id => @creation.id), :method => :post, :class => 'btn success' %>
+ <% end %>
</div>
</div>
</div>