Add edit bio eddie button to asset card [SCI-6018]

This commit is contained in:
aignatov-bio 2021-08-19 13:28:35 +02:00
parent 7f122e56f2
commit 5ed4d9e65e

View file

@ -28,11 +28,25 @@
data-sketch-name="<%= asset.file.metadata[:name] %>"
data-sketch-description="<%= asset.file.metadata[:description] %>"
>
<span class="fas fa-pencil-alt"></span>
<%= image_tag 'icon_small/marvinjs.svg' %>
<%= t('assets.file_preview.edit_in_marvinjs') %>
</a>
</li>
<li role="separator" class="divider"></li>
<% elsif asset.bio_eddie? && BioEddieService.enabled?(current_user) %>
<li>
<a class="btn btn-light bio-eddie-edit-button"
data-molecule-id="<%= asset.id %>"
data-update-url="<%= bio_eddie_asset_path(asset) %>"
data-edit-url="<%= start_editing_bio_eddie_asset_path(asset) %>"
data-molecule-name="<%= asset.file.metadata[:name] || asset.file_name %>"
data-molecule-description="<%= asset.file.metadata[:description] || asset.file.download %>"
>
<%= image_tag 'icon_small/bio_eddie.png' %>
<%= t('assets.file_preview.edit_in_bio_eddie') %>
</a>
</li>
<li role="separator" class="divider"></li>
<% elsif asset.editable_image? %>
<li>
<a class="btn btn-light image-edit-button"