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

breadcrumb lab

parent 7300e12c
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,9 @@ class Admin::Research::ApplicationController < Admin::ApplicationController
if @journal
short_breadcrumb
breadcrumb_for @journal
elsif @laboratory
short_breadcrumb
breadcrumb_for @laboratory
else
super
add_breadcrumb Research.model_name.human
......
......@@ -53,11 +53,4 @@ class Admin::Research::LaboratoriesController < Admin::Research::ApplicationCont
.permit(:name, :address, :zipcode, :city, :country)
.merge(university_id: current_university.id)
end
def breadcrumb
super
add_breadcrumb Research::Laboratory.model_name.human(count: 2),
admin_research_laboratories_path
breadcrumb_for @laboratory
end
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