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

12 lines
279 B
Plaintext
Raw Normal View History

<p>
2019-07-08 23:22:29 +08:00
<% items = item[:details]&.reject { |_,v| v.blank? } %>
<% if items&.any? %>
<i> <%= t('protocol_importers.templates.details.title')%>: </i>
<br />
2019-07-08 23:22:29 +08:00
<% items.each do |k, v| %>
<%= "#{k.humanize}: #{v.to_s}" %>
<br />
<% end %>
<% end %>
</p>