2019-04-24 19:34:56 +08:00
|
|
|
<% if can_manage_protocol_in_repository?(@protocol) && edit_mode %>
|
2019-05-16 23:11:17 +08:00
|
|
|
<%= render partial: "my_modules/protocols/protocol_description_form.html.erb", locals:
|
2019-04-24 19:34:56 +08:00
|
|
|
{
|
|
|
|
protocol: @protocol,
|
|
|
|
update_url: description_protocol_path(@protocol, format: :json)
|
2019-05-16 23:11:17 +08:00
|
|
|
}
|
2019-04-24 19:34:56 +08:00
|
|
|
%>
|
|
|
|
<% elsif @protocol.description.present? %>
|
|
|
|
<%= custom_auto_link(@protocol.tinymce_render(:description),
|
|
|
|
simple_format: false,
|
|
|
|
tags: %w(img),
|
|
|
|
team: current_team) %>
|
2016-07-21 19:11:15 +08:00
|
|
|
<% else %>
|
2019-05-11 22:04:28 +08:00
|
|
|
<span style="font-size: 16px"><%= t('my_modules.protocols.protocol_status_bar.no_description') %></span>
|
2019-05-16 23:11:17 +08:00
|
|
|
<% end %>
|