From dbd578c513e3ec1dabd8792ac60b0d8be77aa36c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com> Date: Thu, 11 May 2023 18:08:12 +0200 Subject: [PATCH] config languages --- app/models/communication/website/page/administrator.rb | 6 +++--- app/models/communication/website/page/author.rb | 6 +++--- app/models/communication/website/page/communication_post.rb | 6 +++--- app/models/communication/website/page/education_diploma.rb | 6 +++--- app/models/communication/website/page/education_program.rb | 6 +++--- app/models/communication/website/page/organization.rb | 6 +++--- app/models/communication/website/page/person.rb | 2 +- app/models/communication/website/page/research_paper.rb | 6 +++--- app/models/communication/website/page/research_volume.rb | 6 +++--- app/models/communication/website/page/researcher.rb | 4 ++-- app/models/communication/website/page/teacher.rb | 4 ++-- 11 files changed, 29 insertions(+), 29 deletions(-) diff --git a/app/models/communication/website/page/administrator.rb b/app/models/communication/website/page/administrator.rb index 2bfbaa41d..7e0166f0a 100644 --- a/app/models/communication/website/page/administrator.rb +++ b/app/models/communication/website/page/administrator.rb @@ -49,11 +49,11 @@ class Communication::Website::Page::Administrator < Communication::Website::Page end def dependencies - super + - [website.config_default_permalinks] + + super + + [website.config_default_languages] + website&.administrators&.map(&:administrator) end - + protected def current_git_path diff --git a/app/models/communication/website/page/author.rb b/app/models/communication/website/page/author.rb index 0b3a84a63..8e8d2ea7d 100644 --- a/app/models/communication/website/page/author.rb +++ b/app/models/communication/website/page/author.rb @@ -45,11 +45,11 @@ class Communication::Website::Page::Author < Communication::Website::Page def dependencies - super + - [website.config_default_permalinks] + + super + + [website.config_default_languages] + website&.authors&.map(&:author) end - + protected def current_git_path diff --git a/app/models/communication/website/page/communication_post.rb b/app/models/communication/website/page/communication_post.rb index 7fcacb13d..cea66d118 100644 --- a/app/models/communication/website/page/communication_post.rb +++ b/app/models/communication/website/page/communication_post.rb @@ -53,14 +53,14 @@ class Communication::Website::Page::CommunicationPost < Communication::Website:: end def dependencies - super + - [website.config_default_permalinks] + + super + + [website.config_default_languages] + website.categories + website.posts end protected - + def current_git_path @current_git_path ||= "#{git_path_prefix}posts/_index.html" end diff --git a/app/models/communication/website/page/education_diploma.rb b/app/models/communication/website/page/education_diploma.rb index 8be9c4c92..43ee5782f 100644 --- a/app/models/communication/website/page/education_diploma.rb +++ b/app/models/communication/website/page/education_diploma.rb @@ -61,13 +61,13 @@ class Communication::Website::Page::EducationDiploma < Communication::Website::P end def dependencies - super + - [website.config_default_permalinks] + + super + + [website.config_default_languages] + website.education_diplomas end protected - + def current_git_path @current_git_path ||= "#{git_path_prefix}diplomas/_index.html" end diff --git a/app/models/communication/website/page/education_program.rb b/app/models/communication/website/page/education_program.rb index 532b1f3c6..45de861ba 100644 --- a/app/models/communication/website/page/education_program.rb +++ b/app/models/communication/website/page/education_program.rb @@ -61,13 +61,13 @@ class Communication::Website::Page::EducationProgram < Communication::Website::P end def dependencies - super + - [website.config_default_permalinks] + + super + + [website.config_default_languages] + website.education_programs end protected - + def current_git_path @current_git_path ||= "#{git_path_prefix}programs/_index.html" end diff --git a/app/models/communication/website/page/organization.rb b/app/models/communication/website/page/organization.rb index 1cbce0419..87d1694fb 100644 --- a/app/models/communication/website/page/organization.rb +++ b/app/models/communication/website/page/organization.rb @@ -45,8 +45,8 @@ class Communication::Website::Page::Organization < Communication::Website::Page def dependencies - super + - [website.config_default_permalinks] + + super + + [website.config_default_languages] + website.connected_organizations end @@ -56,7 +56,7 @@ class Communication::Website::Page::Organization < Communication::Website::Page end protected - + def current_git_path @current_git_path ||= "#{git_path_prefix}organizations/_index.html" end diff --git a/app/models/communication/website/page/person.rb b/app/models/communication/website/page/person.rb index 19ca39909..ac27f9961 100644 --- a/app/models/communication/website/page/person.rb +++ b/app/models/communication/website/page/person.rb @@ -46,7 +46,7 @@ class Communication::Website::Page::Person < Communication::Website::Page def dependencies super + - [website.config_default_permalinks] + + [website.config_default_languages] + # TODO: @arnaud ça te va ? explicitly_connected_people end diff --git a/app/models/communication/website/page/research_paper.rb b/app/models/communication/website/page/research_paper.rb index fb31166fb..b3e3e3396 100644 --- a/app/models/communication/website/page/research_paper.rb +++ b/app/models/communication/website/page/research_paper.rb @@ -49,13 +49,13 @@ class Communication::Website::Page::ResearchPaper < Communication::Website::Page end def dependencies - super + - [website.config_default_permalinks] + + super + + [website.config_default_languages] + website.research_papers end protected - + def current_git_path @current_git_path ||= "#{git_path_prefix}papers/_index.html" end diff --git a/app/models/communication/website/page/research_volume.rb b/app/models/communication/website/page/research_volume.rb index 5c6accb3a..f625016c3 100644 --- a/app/models/communication/website/page/research_volume.rb +++ b/app/models/communication/website/page/research_volume.rb @@ -49,13 +49,13 @@ class Communication::Website::Page::ResearchVolume < Communication::Website::Pag end def dependencies - super + - [website.config_default_permalinks] + + super + + [website.config_default_languages] + website.research_volumes end protected - + def current_git_path @current_git_path ||= "#{git_path_prefix}volumes/_index.html" end diff --git a/app/models/communication/website/page/researcher.rb b/app/models/communication/website/page/researcher.rb index 3619a8c82..b8f9a3d1b 100644 --- a/app/models/communication/website/page/researcher.rb +++ b/app/models/communication/website/page/researcher.rb @@ -49,8 +49,8 @@ class Communication::Website::Page::Researcher < Communication::Website::Page end def dependencies - super + - [website.config_default_permalinks] + + super + + [website.config_default_languages] + website.researchers&.map(&:researcher) end diff --git a/app/models/communication/website/page/teacher.rb b/app/models/communication/website/page/teacher.rb index 6323fd64a..283d7f9ee 100644 --- a/app/models/communication/website/page/teacher.rb +++ b/app/models/communication/website/page/teacher.rb @@ -49,8 +49,8 @@ class Communication::Website::Page::Teacher < Communication::Website::Page end def dependencies - super + - [website.config_default_permalinks] + + super + + [website.config_default_languages] + website.teachers&.map(&:teacher) end -- GitLab