Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into pull_0210
  • Loading branch information
Rodney H. Brown committed Feb 10, 2017
2 parents f710015 + a3d591f commit b2b7045
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions app/controllers/mixins/generic_show_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ def show_download

def show_main
get_tagdata(@record)
drop_breadcrumb({:name => ui_lookup(:tables => self.class.table_name),
:url => "/#{self.class.table_name}/show_list?page=#{@current_page}&refresh=y"},
drop_breadcrumb({:name => ui_lookup(:models => self.class.model.to_s),
:url => "/#{controller_name}/show_list?page=#{@current_page}&refresh=y"},
true)

show_url = restful? ? "/#{self.class.table_name}/" :
"/#{self.class.table_name}/show/"
show_url = restful? ? "/#{controller_name}/" : "/#{controller_name}/show/"

drop_breadcrumb(:name => _("%{name} (Summary)") % {:name => @record.name},
:url => "#{show_url}#{@record.id}")
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/application_helper/button/miq_alert_delete.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class ApplicationHelper::Button::MiqAlertDelete < ApplicationHelper::Button::Basic
needs @record
needs :@record

def disabled?
@error_message = N_("Alerts referenced by Actions can not be deleted") unless @record.owning_miq_actions.empty?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
get :show, :params => {:id => @ems.id}
expect(response.status).to eq(200)
expect(response.body).to_not be_empty
expect(assigns(:breadcrumbs)).to eq([{:name => "Network Providers",
expect(assigns(:breadcrumbs)).to eq([{:name => "Network Managers",
:url => "/ems_network/show_list?page=&refresh=y"},
{:name => "Cloud Manager Network Manager (Summary)",
:url => "/ems_network/#{@ems.id}"}])
Expand Down

0 comments on commit b2b7045

Please sign in to comment.