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

Merge branch 'main' into extranet_directory

parents 6b6244c9 4f7f1ca3
No related branches found
No related tags found
No related merge requests found
......@@ -2,11 +2,11 @@
depth ||= 2
indentation = ' ' * depth
%>
<% programs.each do |program| %>
<% programs.ordered_by_name.each do |program| %>
<%= indentation %>- label: >
<%= indentation %> <%= program.to_s %>
<%= indentation %> path: "<%= program.current_permalink_in_website(@website)&.path %>"
<% children = program.children.where(diploma: diploma).ordered %>
<% children = program.children.where(diploma: diploma) %>
<% if children.any? %>
<%= indentation %> children:
<%= render 'admin/education/diplomas/programs', diploma: diploma, programs: children, depth: depth + 4 %>
......
......@@ -27,7 +27,7 @@ SimpleNavigation::Configuration.run do |navigation|
primary.item :education, 'Feedbacks', nil, { icon: Icon::EDUCATION_FEEDBACKS }
end
if can?(:read, Research::Journal) || can?(:read, Research::Publication) || can?(:read, Research::Laboratory)
if can?(:read, Research::Journal) || can?(:read, Research::Hal::Publication) || can?(:read, Research::Laboratory)
primary.item :research, Research.model_name.human, admin_research_root_path, { kind: :header, image: 'admin/research-thumb.jpg' }
load_from_parts Research, primary
primary.item :research_watch, 'Veille', nil, { icon: Icon::RESEARCH_WATCH }
......
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