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

on remet les journaux :)

parent fb7aa158
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,9 @@ class Icon
EDUCATION_SCHOOL = 'university'
EDUCATION_TEACHER = 'user-graduate'
RESEARCH_JOURNAL = 'newspaper'
RESEARCH_LABORATORY = 'flask'
RESEARCH_PUBLICATION = 'newspaper'
RESEARCH_PUBLICATION = 'book'
RESEARCH_RESEARCHER = 'microscope'
RESEARCH_THESE = 'scroll'
......
......@@ -55,7 +55,7 @@ SimpleNavigation::Configuration.run do |navigation|
{ icon: 'comments' }
end
if can?(:read, Research::Publication) || can?(:read, Research::Laboratory)
if can?(:read, Research::Journal) || can?(:read, Research::Publication) || can?(:read, Research::Laboratory)
primary.item :research,
Research.model_name.human,
nil,
......@@ -71,6 +71,10 @@ SimpleNavigation::Configuration.run do |navigation|
Research::Thesis.model_name.human(count: 2),
admin_research_theses_path,
{ icon: Icon::RESEARCH_THESE } if can?(:read, Research::Thesis)
primary.item :research_journals,
Research::Journal.model_name.human(count: 2),
admin_research_journals_path,
{ icon: Icon::RESEARCH_JOURNAL } if can?(:read, Research::Journal)
primary.item :research_publications,
Research::Publication.model_name.human(count: 2),
admin_research_publications_path,
......
......@@ -22,6 +22,7 @@
# is_teacher :boolean
# last_name :string
# linkedin :string
# mastodon :string
# meta_description :text
# name :string
# phone_mobile :string
......
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