mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-10 15:14:33 +08:00
Merge pull request #8498 from aignatov-bio/ai-sci-11874-update-breadcrumbs-for-templates-pages
Update breadcrumbs for templates pages [SCI-11874]
This commit is contained in:
commit
f2e7123245
5 changed files with 2 additions and 12 deletions
|
@ -220,7 +220,6 @@ class FormsController < ApplicationController
|
|||
archived = params[:view_mode] == 'archived' || @form&.archived?
|
||||
|
||||
@breadcrumbs_items = []
|
||||
@breadcrumbs_items.push({ label: t('breadcrumbs.templates') })
|
||||
@breadcrumbs_items.push(
|
||||
{ label: t('breadcrumbs.forms'), url: forms_path(view_mode: archived ? 'archived' : nil) }
|
||||
)
|
||||
|
|
|
@ -198,10 +198,6 @@ class LabelTemplatesController < ApplicationController
|
|||
def set_breadcrumbs_items
|
||||
@breadcrumbs_items = []
|
||||
|
||||
@breadcrumbs_items.push({
|
||||
label: t('breadcrumbs.templates'),
|
||||
})
|
||||
|
||||
@breadcrumbs_items.push({
|
||||
label: t('breadcrumbs.labels'),
|
||||
url: label_templates_path
|
||||
|
|
|
@ -1125,7 +1125,6 @@ class ProtocolsController < ApplicationController
|
|||
archived = params[:view_mode] || (@protocol&.archived? && 'archived')
|
||||
|
||||
@breadcrumbs_items = []
|
||||
@breadcrumbs_items.push({ label: t('breadcrumbs.templates') })
|
||||
@breadcrumbs_items.push(
|
||||
{ label: t('breadcrumbs.protocols'), url: protocols_path(view_mode: archived ? 'archived' : nil) }
|
||||
)
|
||||
|
|
|
@ -241,10 +241,6 @@ class StorageLocationsController < ApplicationController
|
|||
def set_breadcrumbs_items
|
||||
@breadcrumbs_items = []
|
||||
|
||||
@breadcrumbs_items.push({
|
||||
label: t('breadcrumbs.inventories')
|
||||
})
|
||||
|
||||
@breadcrumbs_items.push({
|
||||
label: t('breadcrumbs.locations'),
|
||||
url: storage_locations_path
|
||||
|
|
|
@ -4802,8 +4802,8 @@ en:
|
|||
templates: "Templates"
|
||||
projects: "Projects"
|
||||
inventories: "Inventories"
|
||||
protocols: "Protocol"
|
||||
labels: "Label"
|
||||
protocols: "Protocol templates"
|
||||
labels: "Label templates"
|
||||
teams: "All Teams"
|
||||
addons: "Add-ons"
|
||||
locations: "Locations"
|
||||
|
|
Loading…
Add table
Reference in a new issue