Merge pull request #3494 from aignatov-bio/ai-sci-6018-fix-edit-icon-for-bioeddie

Add edit bio eddie button to asset card [SCI-6018]
This commit is contained in:
artoscinote 2021-08-20 11:06:17 +02:00 committed by GitHub
commit 5856778e69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"