Skip to content

Commit

Permalink
customise html render for Funding and MDS
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneHaensel committed Nov 30, 2023
1 parent c3c065b commit a709716
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
6 changes: 2 additions & 4 deletions app/helpers/samples_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ def linked_custom_metadata_attribute_display(value, attribute)
v = value ? value[attr.title.to_s] : nil
html += '<li>'
if attr.linked_custom_metadata? || attr.linked_custom_metadata_multi?
html += content_tag(:span, class: 'linked_custom_metdata_display') do
html += content_tag(:div, class: 'linked_custom_metdata_display') do
folding_panel(attr.label, true, id:attr.title) do
display_attribute_value(v, attr)
end
end
else
html += '<label>'+attr.title+'</label>'+' : '
html += '<label>'+attr.label+'</label>'+' : '
html += display_attribute_value(v, attr)
end
html += '</li>'
Expand Down Expand Up @@ -355,5 +355,3 @@ def attribute_form_element(attribute, value, element_name, element_class, depth=
end

end


14 changes: 0 additions & 14 deletions app/views/homes/funding.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,3 @@
</div>
</div>
</div>

<div class='row funder-row'>
<div class='col-md-2'>
<%= image 'programme-denbi',:class=>'funder-logo' %>
</div>
<div class="col-md-10">
<%= link_to 'German Network for Bioinformatics Infrastructure – de.NBI', 'https://www.denbi.de/', target:'_blank' %>
- A national, academic and non-profit infrastructure supported by the Federal Ministry of Education and Research providing bioinformatics services to users in life sciences research and biomedicine
in Germany and Europe. The partners organize training events, courses and summer schools on tools, standards and compute services provided by de.NBI to assist researchers to more effectively exploit their data.


</div>
</div>
</div>

0 comments on commit a709716

Please sign in to comment.