Skip to content
Snippets Groups Projects
Unverified Commit dbd578c5 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

config languages

parent bab5aae1
No related branches found
No related tags found
No related merge requests found
Showing
with 29 additions and 29 deletions
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment