Skip to content

Commit 5e42f31

Browse files
committed
Small tweak of space check for funder logos on about page
1 parent e02a571 commit 5e42f31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/about/us.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
<h3><%== t "us.keys.#{key}" %></h3>
1717
<%== t 'us.funding' %>
1818
<% if TeSS::Config.funders.present? %>
19+
<% expected_space = current_space.default? ? 'default' : current_space.host %>
1920
<p>
2021
<% TeSS::Config.funders.each do |funder| %>
21-
<% expected_space = current_space.default? ? 'default' : current_space.host %>
2222
<% if (funder[:only].blank? || funder[:only] == 'about') && (funder[:space].blank? || funder[:space] == expected_space) %>
2323
<%= link_to(funder[:url], target: '_blank', rel: 'noopener') do -%>
2424
<%= image_tag(funder[:logo], class: 'funding-logo') -%>

0 commit comments

Comments
 (0)