From c94d3ce95035d4acf89abb55f5542dca9d69f425 Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Fri, 26 Apr 2019 07:57:46 +0200 Subject: [PATCH] Remove duplicated button --- app/views/my_modules/protocols.html.erb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/my_modules/protocols.html.erb b/app/views/my_modules/protocols.html.erb index 5b8e9e45c..d7e9a7d71 100644 --- a/app/views/my_modules/protocols.html.erb +++ b/app/views/my_modules/protocols.html.erb @@ -25,18 +25,17 @@ <%= render partial: "my_modules/protocols/protocol_status_bar.html.erb" %> <%= render partial: "my_modules/protocols/protocol_buttons.html.erb" %> - <%= render partial: "my_modules/state_buttons.html.erb" %>
<% if can_manage_module?(@my_module) %> - <%= render partial: "my_modules/protocols/protocol_description_form", locals: + <%= render partial: "my_modules/protocols/protocol_description_form", locals: { protocol: @my_module.protocol, update_url: update_protocol_description_my_module_path(@my_module, format: :json) - } + } %> <% elsif @my_module.protocol.description.present? %> <%= custom_auto_link(@my_module.protocol.description,