mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 06:06:56 +08:00
16 lines
475 B
Text
16 lines
475 B
Text
<% if @description[:body].present? %>
|
|
<p> <%= sanitize(@description[:body], tags: Constants::PROTOCOLS_DESC_TAGS) %> </p>
|
|
<br/>
|
|
<% end %>
|
|
<% 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 %>
|