scinote-web/app/views/my_modules/_description_label.html.erb

8 lines
281 B
Plaintext

<% if @my_module.description.blank? %>
<em><%=t "experiments.canvas.popups.no_description" %></em>
<% else %>
<%= auto_link(simple_format(@my_module.description),
link: :urls,
html: { target: '_blank' }) %>
<% end %>