forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Cloud and Infra specific Resource Pool views
- Loading branch information
1 parent
d187e4d
commit 46e17f0
Showing
12 changed files
with
187 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
class ResourcePoolCloudController < ResourcePoolController | ||
def self.model | ||
ResourcePool | ||
end | ||
|
||
def self.table_name | ||
@table_name ||= "resource_pool" | ||
end | ||
|
||
def index | ||
redirect_to(:action => 'show_list') | ||
end | ||
|
||
private | ||
|
||
def breadcrumbs_options | ||
{ | ||
:breadcrumbs => [ | ||
{:title => _("Compute")}, | ||
{:title => _("Clouds")}, | ||
{:title => _("Resource Pools"), :url => controller_url}, | ||
], | ||
} | ||
end | ||
|
||
menu_section :clo | ||
feature_for_actions "#{controller_name}_show_list", *ADV_SEARCH_ACTIONS | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
class ResourcePoolInfraController < ResourcePoolController | ||
def self.model | ||
ResourcePool | ||
end | ||
|
||
def self.table_name | ||
@table_name ||= "resource_pool" | ||
end | ||
|
||
def index | ||
redirect_to(:action => 'show_list') | ||
end | ||
|
||
private | ||
|
||
def breadcrumbs_options | ||
{ | ||
:breadcrumbs => [ | ||
{:title => _("Compute")}, | ||
{:title => _("Infrastructure")}, | ||
{:title => _("Resource Pools"), :url => controller_url}, | ||
], | ||
} | ||
end | ||
|
||
menu_section :inf | ||
feature_for_actions "#{controller_name}_show_list", *ADV_SEARCH_ACTIONS | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#maincontent | ||
= render :partial => "layouts/flash_msg" | ||
|
||
- if @display == "config_info" | ||
rp_config = calculate_rp_config(@record) | ||
%fieldset | ||
%h3= _('Info') | ||
%table.table.table-bordered.table-striped | ||
- if rp_config.blank? | ||
%tr | ||
%td{:width => "495"} | ||
%strong= _('Not Available') | ||
- else | ||
- rp_config.each_slice(2) do |items| | ||
%tr | ||
- items.each do |item| | ||
%td{:width => "495"} | ||
%strong | ||
= h(item[:field]) | ||
= h(item[:description]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#main_div | ||
- if %w(vms all_vms hosts clusters resource_pools).include?(@display) && @showtype != "compare" | ||
= render :partial => "layouts/gtl", :locals => {:action_url => "show/#{@record.id}"} | ||
- else | ||
- case @showtype | ||
- when "details" | ||
= render :partial => "layouts/gtl", :locals => {:action_url => @lastaction} | ||
- when 'main' | ||
= render :partial => "layouts/textual_groups_generic" | ||
- when 'config' | ||
= render :partial => "config" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#main_div | ||
= render :partial => 'layouts/gtl' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#maincontent | ||
= render :partial => "layouts/flash_msg" | ||
|
||
- if @display == "config_info" | ||
rp_config = calculate_rp_config(@record) | ||
%fieldset | ||
%h3= _('Info') | ||
%table.table.table-bordered.table-striped | ||
- if rp_config.blank? | ||
%tr | ||
%td{:width => "495"} | ||
%strong= _('Not Available') | ||
- else | ||
- rp_config.each_slice(2) do |items| | ||
%tr | ||
- items.each do |item| | ||
%td{:width => "495"} | ||
%strong | ||
= h(item[:field]) | ||
= h(item[:description]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#main_div | ||
- if %w(vms all_vms hosts clusters resource_pools).include?(@display) && @showtype != "compare" | ||
= render :partial => "layouts/gtl", :locals => {:action_url => "show/#{@record.id}"} | ||
- else | ||
- case @showtype | ||
- when "details" | ||
= render :partial => "layouts/gtl", :locals => {:action_url => @lastaction} | ||
- when 'main' | ||
= render :partial => "layouts/textual_groups_generic" | ||
- when 'config' | ||
= render :partial => "config" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#main_div | ||
= render :partial => 'layouts/gtl' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters