Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions app/views/about/_about_tess_acknowledgements.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<div id="link_tess" class="<%= next_about_block(@feature_count += 1) %>">
<h3><%= t('about.headings.tess') %></h3>
<p><%== t 'about.tess' %></p>
<%= link_to t('about.links.learn_more_tess'),
'https://tess.elixir-europe.org/about', class: 'btn btn-default' %>
</div>
5 changes: 5 additions & 0 deletions app/views/about/tess.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,13 @@
<%= link_to t('about.links.learn_more_api'),
developers_path(anchor: 'api'), class: 'btn btn-default' %>
</div>

<!-- LINK TESS -->
<%= render partial: 'about_tess_acknowledgements' if TeSS::Config.site.dig('about_tess_acknowledgments') %>

</div>


<hr/>

<%= render partial: 'links', locals: { show: 'tess' } %>
Expand Down
5 changes: 5 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ en:
educational_resource: Educational Resource
subscribe: Subscribe
widgets_and_api: Widgets & API
tess: ELIXIR TeSS
sidebar:
what_is: 'What is %{title}?'
what_we_catalogue: 'What we catalogue'
Expand All @@ -97,6 +98,7 @@ en:
links:
learn_more_widgets: Learn more about Widgets
learn_more_api: Learn more about our API
learn_more_tess: Learn more about TeSS
registry: >
TeSS is a platform that was developed to provide a one-stop shop for trainers and trainees to discover
online information and content, including training materials, events and interactive tutorials.
Expand Down Expand Up @@ -155,6 +157,9 @@ en:
discover_materials: Discover Materials
discover_learning_paths: Discover Learning Paths
discover_workflows: Discover Workflows
tess: >
TeSS is based on the <a href='https://elixir-europe.org/' target='_blank'>ELIXIR</a> TeSS architecture and could not have been realized as it is without the foundation of their work.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think change this text to something a bit milder... like:

<site name> is based on the <a href='https://elixir-europe.org/' target='_blank'>ELIXIR</a> TeSS platform.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed let's keep it simple with a one liner to acknowledge ELIXIR TeSS.


developer:
license: >
TeSS is committed to the FAIR principles: making data findable, accessible, interoperable and re-usable.
Expand Down
1 change: 1 addition & 0 deletions config/tess.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ default: &default
directory_tabs: ['trainers', 'content_providers', 'nodes']
# The order in with the 'about us' tabs appear
about_us_tab_order: ['tess_club', 'contact', 'team', 'funding', 'acknowledgements', 'cite']
about_tess_acknowledgments: false # if true, displays ELIXIR TeSS acknowledgments in the bottom /about
n_provider_ids: 5
calendar_event_maxlength: 5
content_provider_grid_long: true # true for full width in grid, false for short
Expand Down
14 changes: 14 additions & 0 deletions test/controllers/about_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,18 @@ class AboutControllerTest < ActionController::TestCase
assert_response :success
end
end

test 'should not show about tess acknowledgments if disabled' do
with_settings({ site: { about_tess_acknowledgments: false } }) do
get :tess
assert_select 'div#link_tess', count: 0
end
end

test 'should show about tess acknowledgments if enabled' do
with_settings({ site: { about_tess_acknowledgments: true } }) do
get :tess
assert_select 'div#link_tess', count: 1
end
end
end
Loading