From af6207095c025493b95fdfc2f61da53fa556ecf4 Mon Sep 17 00:00:00 2001 From: kennethrioja <59597207+kennethrioja@users.noreply.github.com> Date: Fri, 24 Jul 2026 16:52:48 +0200 Subject: [PATCH 1/2] feat(about): adding %{repository} instead of hardcoded GitHub repo --- config/initializers/i18n_defaults.rb | 3 ++- config/locales/en.yml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/initializers/i18n_defaults.rb b/config/initializers/i18n_defaults.rb index 57102cba6..c5602a90e 100644 --- a/config/initializers/i18n_defaults.rb +++ b/config/initializers/i18n_defaults.rb @@ -3,7 +3,8 @@ class << self alias original_translate translate def translate(key, **options) - defaults = { site_name: TeSS::Config.site['title_short'] } + defaults = { site_name: TeSS::Config.site['title_short'], + repository: TeSS::Config.site['repository'] } original_translate(key, **defaults.merge(options)) end alias t translate diff --git a/config/locales/en.yml b/config/locales/en.yml index 727d7ca70..6578e6ee8 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -187,11 +187,11 @@ en: As such, all content in %{site_name} is available under the CC BY 4.0 licence, and can be accessed through our API and widgets. The %{site_name} codebase is also available to re-use under the BSD Licence, and can be found on GitHub. code_license: > - BSD 3-Clause + BSD 3-Clause data_license: > CC-BY 4.0 contributions: > - contributions + contributions gmaps_countries: > 'United Kingdom', 'Spain', 'Portugal', 'France', 'Belgium', 'Ireland', 'Estonia', 'Finland', 'Germany', 'Austria', 'Italy', 'Hungary', 'Czech Republic', 'Estonia', 'Denmark', From 39cbc5caea7ae12a204b83c2b1e80d01594f930a Mon Sep 17 00:00:00 2001 From: kennethrioja <59597207+kennethrioja@users.noreply.github.com> Date: Fri, 14 Aug 2026 14:25:50 +0200 Subject: [PATCH 2/2] chore(about): addressing copilot and Finn reviews from #1346 (tags and ) --- config/initializers/i18n_defaults.rb | 3 ++- config/locales/en.yml | 8 ++++---- config/tess.example.yml | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/config/initializers/i18n_defaults.rb b/config/initializers/i18n_defaults.rb index c5602a90e..58de32721 100644 --- a/config/initializers/i18n_defaults.rb +++ b/config/initializers/i18n_defaults.rb @@ -4,7 +4,8 @@ class << self def translate(key, **options) defaults = { site_name: TeSS::Config.site['title_short'], - repository: TeSS::Config.site['repository'] } + repository: TeSS::Config.site['repository'], + data_license: TeSS::Config.site['data_license'] } original_translate(key, **defaults.merge(options)) end alias t translate diff --git a/config/locales/en.yml b/config/locales/en.yml index 6578e6ee8..71cc2006e 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -186,12 +186,12 @@ en: %{site_name} is committed to the FAIR principles: making data findable, accessible, interoperable and re-usable. As such, all content in %{site_name} is available under the CC BY 4.0 licence, and can be accessed through our API and widgets. The %{site_name} codebase is also available to re-use under the BSD Licence, and can be found on GitHub. - code_license: > - BSD 3-Clause + code_license: > # IT MUST STAY BSD 3-Clause LICENSE FOR EVERY TESS INSTANCE + BSD 3-Clause data_license: > - CC-BY 4.0 + %{data_license} contributions: > - contributions + contributions gmaps_countries: > 'United Kingdom', 'Spain', 'Portugal', 'France', 'Belgium', 'Ireland', 'Estonia', 'Finland', 'Germany', 'Austria', 'Italy', 'Hungary', 'Czech Republic', 'Estonia', 'Denmark', diff --git a/config/tess.example.yml b/config/tess.example.yml index 70560649e..3f4211a10 100644 --- a/config/tess.example.yml +++ b/config/tess.example.yml @@ -97,6 +97,7 @@ default: &default logo_email: '' default_theme: default repository: 'https://github.com/ElixirTeSS/TeSS' + data_license: 'CC-BY 4.0' supported_by: 'elixir_supported_by' widget_example: home_page: # Configuration for the sections displayed on the front page