mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-09 16:01:30 +08:00
additional filters for blank string when displaying the reagent details
This commit is contained in:
parent
b709c0ec3c
commit
012b828708
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
<% if item[:details]&.any? %>
|
<% if item[:details]&.any? %>
|
||||||
<b> <%= t('protocol_importers.templates.details.title')%>: </b>
|
<b> <%= t('protocol_importers.templates.details.title')%>: </b>
|
||||||
<br />
|
<br />
|
||||||
<% item[:details]&.compact.each do |k, v| %>
|
<% item[:details].reject { |_,v| v.blank? }.each do |k, v| %>
|
||||||
<%= "#{k.humanize}: #{v.to_s}" %>
|
<%= "#{k.humanize}: #{v.to_s}" %>
|
||||||
<br />
|
<br />
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue