Skip to content
Snippets Groups Projects
Commit edb9ed3e authored by Arnaud Levy's avatar Arnaud Levy
Browse files

years in extranet

parent 571e9198
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,10 @@ class Communication::Extranet < ApplicationRecord
find_by domain: host
end
def should_show_years?
about.programs.many?
end
def url
"https://#{domain}"
end
......
......@@ -9,7 +9,7 @@ SimpleNavigation::Configuration.run do |navigation|
university_persons_path
primary.item :years,
Education::AcademicYear.model_name.human(count: 2),
education_academic_years_path
education_academic_years_path if current_extranet.should_show_years?
primary.item :cohorts,
Education::Cohort.model_name.human(count: 2),
education_cohorts_path
......
This diff is collapsed.
# Osuny Extranet
## Alumni
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