Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a welcoming page prompting to add a Provider
- Loading branch information
1 parent
a1d83b9
commit f65634a
Showing
7 changed files
with
46 additions
and
5 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 |
---|---|---|
@@ -1 +1,5 @@ | ||
#main_div= render :partial => "layouts/gtl" | ||
#main_div | ||
- if EmsCloud.any? | ||
= render :partial => "layouts/gtl" | ||
- else | ||
= render :partial => 'layouts/empty', :locals => {:type => _("Cloud")} |
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
#main_div | ||
= render :partial => 'layouts/gtl' | ||
- if Container.any? | ||
= render :partial => 'layouts/gtl' | ||
- else | ||
= render :partial => 'layouts/empty', :locals => {:type => _("Containers")} |
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
#main_div | ||
= render :partial => 'layouts/gtl' | ||
- if EmsInfra.any? | ||
= render :partial => 'layouts/gtl' | ||
- else | ||
= render :partial => 'layouts/empty', :locals => {:type => _("Infrastructure")} |
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 |
---|---|---|
@@ -1 +1,5 @@ | ||
#main_div= render :partial => "layouts/gtl" | ||
#main_div | ||
- if EmsNetwork.any? | ||
= render :partial => "layouts/gtl" | ||
- else | ||
= render :partial => 'layouts/empty', :locals => {:type => _("Network")} |
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
#main_div | ||
= render :partial => 'layouts/gtl' | ||
- if EmsPhysicalInfra.any? | ||
= render :partial => 'layouts/gtl' | ||
- else | ||
= render :partial => 'layouts/empty', :locals => {:type => _("Physical Infrastructure")} |
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,19 @@ | ||
.blank-slate-pf | ||
.blank-slate-pf-icon | ||
%span.pficon.pficon-add-circle-o | ||
%h1= _("Add a Provider") | ||
%p | ||
= _("You don't have any providers to display. Please add a Provider.") | ||
%p | ||
= _("Learn more about this") | ||
%a{:href => 'https://manageiq.org/docs/get-started/add-a-provider', | ||
:target => '_blank'} | ||
= _("in the documentation.") | ||
.blank-slate-pf-main-action | ||
= link_to(_("Add a Provider"), | ||
{:action => 'new'}, | ||
:class => 'btn btn-primary btn-lg', | ||
"data-miq_sparkle_on" => true, | ||
"data-miq_sparkle_off" => true, | ||
"data-method" => :post, | ||
:title => _("Add a new %{provider_type} Provider") % {:provider_type => type}) |
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