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

program hierarchy in breadcrumb

parent 060537ca
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,9 @@ class Admin::Education::Programs::ApplicationController < Admin::Education::Appl
def breadcrumb
super
add_breadcrumb Education::Program.model_name.human(count: 2), admin_education_programs_path
breadcrumb_for @program
@program.ancestors_and_self.each do |program|
add_breadcrumb program.to_s_in(current_language), admin_education_program_path(program)
end
end
def default_url_options
......
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