Skip to content

Commit

Permalink
Show breadcrumbs when redirected from another controller
Browse files Browse the repository at this point in the history
  • Loading branch information
PanSpagetka committed Jan 10, 2019
1 parent c40daa4 commit 8ed520c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/controllers/ems_cloud_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ def self.table_name
@table_name ||= "ems_cloud"
end

def show
@breadcrumbs = [{:name => "Cloud Providers", :url => "/ems_cloud/show_list"}]
super
end

def ems_path(*args)
ems_cloud_path(*args)
end
Expand Down
5 changes: 5 additions & 0 deletions app/controllers/ems_container_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ def show_list
process_show_list(:gtl_dbname => 'emscontainer')
end

def show
@breadcrumbs = [{:name => "Containers Providers", :url => "/ems_container/show_list"}]
super
end

def ems_path(*args)
ems_container_path(*args)
end
Expand Down
5 changes: 5 additions & 0 deletions app/controllers/ems_infra_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ def self.table_name
@table_name ||= "ems_infra"
end

def show
@breadcrumbs = [{:name => "Infrastructure Providers", :url => "/ems_infra/show_list"}]
super
end

def ems_path(*args)
ems_infra_path(*args)
end
Expand Down

0 comments on commit 8ed520c

Please sign in to comment.