scinote-web/app/views/protocol_importers/templates/protocol_description.html.erb

17 lines
475 B
Text
Raw Normal View History

2019-07-08 23:22:29 +08:00
<% if @description[:body].present? %>
<p> <%= sanitize(@description[:body], tags: Constants::PROTOCOLS_DESC_TAGS) %> </p>
<br/>
<% end %>
2019-07-08 23:22:29 +08:00
<% if @description[:image].present? %>
<br/>
<img src='<%= @description[:image] %>' />
<br/>
<% end %>
<% @description[:extra_content]&.each do |i| %>
<% if i[:body].present? %>
<br/><b><%= strip_tags i[:title] %>:</b> <br/>
<%= sanitize(i[:body], tags: Constants::PROTOCOLS_DESC_TAGS) %><br/>
<% end %>
<% end %>