Skip to content

Commit

Permalink
De-explorization show page
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilkr128 committed Jan 6, 2023
1 parent c8ce43d commit e5a4827
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
10 changes: 9 additions & 1 deletion app/controllers/infra_networking_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
6 changes: 5 additions & 1 deletion app/helpers/infra_networking_helper/textual_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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?

Expand Down

0 comments on commit e5a4827

Please sign in to comment.