Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osuny
Admin
Commits
9a81f587
Unverified
Commit
9a81f587
authored
3 years ago
by
Sébastien Gaya
Browse files
Options
Downloads
Patches
Plain Diff
breadcrumb lab
parent
7300e12c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/controllers/admin/research/application_controller.rb
+3
-0
3 additions, 0 deletions
app/controllers/admin/research/application_controller.rb
app/controllers/admin/research/laboratories_controller.rb
+0
-7
0 additions, 7 deletions
app/controllers/admin/research/laboratories_controller.rb
with
3 additions
and
7 deletions
app/controllers/admin/research/application_controller.rb
+
3
−
0
View file @
9a81f587
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
app/controllers/admin/research/laboratories_controller.rb
+
0
−
7
View file @
9a81f587
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment