diff --git a/app/controllers/infra_networking_controller.rb b/app/controllers/infra_networking_controller.rb index 849f0ed309ff..b523c5283c0a 100644 --- a/app/controllers/infra_networking_controller.rb +++ b/app/controllers/infra_networking_controller.rb @@ -37,7 +37,11 @@ def tagging_explorer_controller? end def show_searchbar? - true + @record.nil? ? true : false + end + + def display_back_button? + false end def tree_select @@ -87,6 +91,10 @@ def load_or_clear_adv_search def show assert_privileges("infra_networking_view") + @center_toolbar = 'infra_networking' + @lastaction = "show" + @display = 'main' + @showtype = 'main' @switch = @record = identify_record(params[:id], Switch) end diff --git a/app/helpers/infra_networking_helper/textual_summary.rb b/app/helpers/infra_networking_helper/textual_summary.rb index b73176ced901..114d1ef23902 100644 --- a/app/helpers/infra_networking_helper/textual_summary.rb +++ b/app/helpers/infra_networking_helper/textual_summary.rb @@ -8,7 +8,7 @@ def textual_group_properties end def textual_group_relationships - TextualGroup.new(_("Relationships"), %i[hosts custom_button_events]) + TextualGroup.new(_("Relationships"), %i[hosts custom_button_events lans]) end def textual_group_smart_management @@ -28,6 +28,10 @@ def textual_hosts h end + def textual_lans + {:label => _("Portgroup"), :icon => "pficon pficon-network", :value => @record.lans.first.name} + end + def textual_custom_button_events return nil unless User.current_user.super_admin_user? || User.current_user.admin?