mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 01:35:34 +08:00
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:
commit
5856778e69
1 changed files with 15 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue