mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
SCI-3649 adding catalog number, fixing up the design a bit
This commit is contained in:
parent
692a5aff15
commit
ab038ffdf7
2 changed files with 8 additions and 3 deletions
|
@ -117,6 +117,7 @@ module ProtocolImporters
|
|||
name: desc_component[:source][:name],
|
||||
mol_weight: desc_component[:source][:mol_weight],
|
||||
details: {
|
||||
catalog_number: desc_component[:source][:sku],
|
||||
link: desc_component[:source][:vendor][:link],
|
||||
linear_formula: desc_component[:source][:linfor]
|
||||
}
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
<p>
|
||||
<%= item[:details]&.any? ? "<b>#{t('protocol_importers.templates.details.title') }</b>" : '' %>
|
||||
<% item[:details]&.each do |k, v| %>
|
||||
<%= "#{k.camelize.to_s}: #{v.to_s}" %>
|
||||
<% if item[:details]&.any? %>
|
||||
<b> <%= t('protocol_importers.templates.details.title')%>: </b>
|
||||
<br />
|
||||
<% item[:details]&.each do |k, v| %>
|
||||
<%= "#{k.humanize}: #{v.to_s}" %>
|
||||
<br />
|
||||
<% end %>
|
||||
<% end %>
|
||||
</p>
|
||||
|
|
Loading…
Reference in a new issue