mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-25 01:03:18 +08:00
Add edit bio eddie button to asset card [SCI-6018]
This commit is contained in:
parent
7f122e56f2
commit
5ed4d9e65e
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