From 5ed4d9e65ee8cc0d767e2960eb6e0013b1af9df0 Mon Sep 17 00:00:00 2001 From: aignatov-bio Date: Thu, 19 Aug 2021 13:28:35 +0200 Subject: [PATCH] Add edit bio eddie button to asset card [SCI-6018] --- app/views/assets/_asset_context_menu.html.erb | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/app/views/assets/_asset_context_menu.html.erb b/app/views/assets/_asset_context_menu.html.erb index 6eaaedb27..250052ec6 100644 --- a/app/views/assets/_asset_context_menu.html.erb +++ b/app/views/assets/_asset_context_menu.html.erb @@ -28,11 +28,25 @@ data-sketch-name="<%= asset.file.metadata[:name] %>" data-sketch-description="<%= asset.file.metadata[:description] %>" > - + <%= image_tag 'icon_small/marvinjs.svg' %> <%= t('assets.file_preview.edit_in_marvinjs') %> + <% elsif asset.bio_eddie? && BioEddieService.enabled?(current_user) %> +
  • + + <%= image_tag 'icon_small/bio_eddie.png' %> + <%= t('assets.file_preview.edit_in_bio_eddie') %> + +
  • + <% elsif asset.editable_image? %>