scinote-web/app/views/my_modules/_my_module_notes.html.erb
Soufiane 33bb79d17a
Implement details and notes sections of shareable links [SCI-8750] (#5710)
Co-authored-by: Sboursen <dev.sboursen@gmail.com>
2023-07-06 15:10:26 +02:00

14 lines
566 B
Text

<div class="task-notes">
<div class="task-notes-content">
<% if can_update_my_module_description?(@my_module) %>
<%= render partial: "my_modules/description_form" %>
<% elsif @my_module.description.present? %>
<%= custom_auto_link(@my_module.tinymce_render(:description),
simple_format: false,
tags: %w(img),
team: current_team) %>
<% else %>
<span class="no-description"><%= t('my_modules.notes.no_description') %></span>
<% end %>
</div>
</div>