mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-07 23:44:55 +08:00
84993ea3ef
* Update protocol repository for new description format * move image clone method to concerns
15 lines
No EOL
592 B
Text
15 lines
No EOL
592 B
Text
<% if can_manage_protocol_in_repository?(@protocol) && edit_mode %>
|
|
<%= render partial: "my_modules/protocols/protocol_description_form", locals:
|
|
{
|
|
protocol: @protocol,
|
|
update_url: description_protocol_path(@protocol, format: :json)
|
|
}
|
|
%>
|
|
<% elsif @protocol.description.present? %>
|
|
<%= custom_auto_link(@protocol.tinymce_render(:description),
|
|
simple_format: false,
|
|
tags: %w(img),
|
|
team: current_team) %>
|
|
<% else %>
|
|
<%= t('my_modules.protocols.protocol_status_bar.no_description') %>
|
|
<% end %> |