diff --git a/app/models/communication/website/page/administrator.rb b/app/models/communication/website/page/administrator.rb index 2bfbaa41d65b46df33025aafbe80bd7fdab09479..7e0166f0af0e41de056fa90379192f08b6c97c6d 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 0b3a84a63ab02bd781489d1b298547d2f0706443..8e8d2ea7d98215ea4607d629f957d5585ba62958 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 7fcacb13d51b9e689b3d66be881c22b9af462bb4..cea66d1182a3dd5e059b0752606e3b3fb1b6c90e 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 8be9c4c921c32136c3c6a26e2eeeb520c6c99580..43ee5782f4af876c8eb6b2af22623b98ade44f7f 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 532b1f3c6ea957e1ad7710bf952ece79bc14f6b1..45de861ba7c60cb0da63523f0878de5c8bbb25e0 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 1cbce0419d0d75d730a601f426a06e7301537241..87d1694fb6dfcfe23d7357619429554e6142eb4c 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 19ca39909bd8c2f8678a72835e759e3a176fbe3f..ac27f99614f4c16fdf61b868625357c3165662aa 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 fb31166fb30846bf8c2826be1975609afc99d0ee..b3e3e3396403cdddb1cb477389f5e92b8d051ec6 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 5c6accb3affbcc487dcfbd0269153e19db4e38e5..f625016c32a1117c0fb896146e68811370b448b4 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 3619a8c820743c86caf3aebadd8671f11a2fce28..b8f9a3d1be5ca5d11354cedc814518aec7886112 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 6323fd64ad2ca944b5d15026466b8c1c8a3427ac..283d7f9ee20abf0f392fb0842d0da7fb3fe4a3bc 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