Skip to content

Commit

Permalink
Copy the new /smithy/assets/xxx link instead;
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Glen committed Feb 3, 2016
1 parent fd2ef3c commit f50a388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/smithy/assets/_asset.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<% end %>
<p class="name"><strong><%= asset.name %></strong></p>
<div class="pull-right">
<%= link_to "Copy URL", image_url(asset.file.url), class: "btn btn-primary btn-xs copy-to-clipboard", data: { 'clipboard-text' => image_url(asset.file.url) } %>
<%= link_to "Copy URL", image_url(asset.file.url), class: "btn btn-primary btn-xs copy-to-clipboard", data: { 'clipboard-text' => asset_path(asset) } %>
<%= link_to "Edit", [:edit, asset], class: "btn btn-primary btn-xs" %>
<%= link_to "Delete", asset, class: "btn btn-danger btn-xs", method: :delete, data: { confirm: "Are you sure?" } %>
</div>
Expand Down

0 comments on commit f50a388

Please sign in to comment.