Commit c891233a
Changed files (1)
app
views
creations
app/views/creations/show.html.erb
@@ -6,29 +6,6 @@
$(document).ready(ready);
</script>
<% end -%>
-<% if @creation.user == current_user %>
- <div class="row">
- <div class="span12">
- <% if @creation.user == current_user %>
- <p>
- <%= link_to edit_creation_path(@creation), class: 'btn' do %>
- <i class="icon-edit"></i> <strong>EDIT</strong>
- <% end %>
- <%= link_to new_my_cake_photo_path(@creation), class: 'btn' do %>
- <i class="icon-plus"></i><strong>ADD IMAGES</strong>
- <% end %>
- <%= link_to creation_favorites_path(:creation_id => @creation.id), class: 'btn' do %>
- <i class="icon-heart"></i> <strong>FANCLUB (<%= pluralize(@creation.favorites.length, 'fan') %>)</strong>
- <% end %>
- <%= link_to creation_path(@creation), confirm: "Are you sure you want to permanently remove this creation?", method: :delete, class: 'btn btn-danger pull-right' do %>
- <i class="icon-white icon-remove"></i> <strong>DELETE</strong>
- <% end %>
- </p>
- <% end %>
- </div>
-</div>
-<% end %>
-
<div class="row">
<div class="span6">
<img class="thumbnail" src="<%= @creation.primary_image.url_for(:large) %>" alt="<%= @creation.name %>" />