summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-07-05 13:11:19 -0600
committermo khan <mo@mokhan.ca>2014-07-05 13:11:19 -0600
commit63c034bf41e935cd5c166d81b03063820cc987cd (patch)
tree2ee00c55172b31951981f9995ceae23d0a93154c
parentc891233a0587e0e06d32a3f6157c2bec3eb59a93 (diff)
update links in the dashboard page to go to the new backbone pages.
-rw-r--r--app/views/my/dashboard/_creation.html.erb10
1 files changed, 2 insertions, 8 deletions
diff --git a/app/views/my/dashboard/_creation.html.erb b/app/views/my/dashboard/_creation.html.erb
index 02404dd0..8eb00416 100644
--- a/app/views/my/dashboard/_creation.html.erb
+++ b/app/views/my/dashboard/_creation.html.erb
@@ -1,23 +1,17 @@
<div class="media">
- <%= link_to item, class: 'pull-left' do %>
+ <%= link_to my_root_path(anchor: "cakes/#{item.id}"), class: 'pull-left' do %>
<img class="media-object" data-src="<%= item.primary_image.url_for(:thumb) %>" alt="64x64" style="width: 64px; height: 64px;" src="<%= item.primary_image.url_for(:thumb) %>">
<% end %>
<div class="media-body">
<h4 class="media-heading"><%= item.name %></h4>
<%= item.story %>
<p>
- <%= link_to edit_creation_path(item) do %>
+ <%= link_to my_root_path(anchor: "cakes/#{item.id}/edit") do %>
<i class="icon-edit"> edit</i>
<% end %>
- <%= link_to new_my_cake_photo_path(item) do %>
- <i class="icon-plus"> images</i>
- <% end %>
<%= link_to creation_favorites_path(:creation_id => item.id) do %>
<i class="icon-heart"> fanclub </i>
<% end %>
- <%= link_to creation_path(item), confirm: "Are you sure you want to permanently remove this creation?", method: :delete do %>
- <i class="icon-white icon-remove"> remove</i>
- <% end %>
</p>
</div>
</div>