Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #22236 - Adds breadcrumbs to foreman UI
- Loading branch information
Showing
53 changed files
with
288 additions
and
84 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
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<% title _("Edit Architecture") %> | ||
<% title _("Edit %s") % @architecture.to_s %> | ||
<%= render :partial => 'form' %> |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<% title _("Edit LDAP Auth Source") %> | ||
<% title _("Edit %s") % @auth_source_ldap.to_s %> | ||
<%= render :partial => 'form' %> |
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,3 +1,3 @@ | ||
<% title _("Edit Bookmark") %> | ||
<% title _("Edit %s") % @bookmark.to_s %> | ||
<%= render :partial => 'form' %> |
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,3 +1,3 @@ | ||
<% title _("Edit Global Parameter") %> | ||
<% title _("Edit %s") % @common_parameter.to_s %> | ||
<%= render :partial => 'form' %> |
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,3 +1,9 @@ | ||
<% title _("Edit compute profile on %s") % @set.compute_resource.to_label %> | ||
<%= breadcrumbs do | ||
[ | ||
{caption: _("Compute Resources"), url: (url_for(compute_resources_path) if authorized_for(hash_for_compute_resources_path))}, | ||
{caption: @set.compute_resource.to_label, url: (compute_resource_path(@set.compute_resource) if authorized_for(hash_for_compute_resource_path(@set.compute_resource)))}, | ||
{caption: _("Compute Profiles"), url: (url_for(compute_profiles_path) if authorized_for(hash_for_compute_profiles_path))}, | ||
{caption: _('Edit %s' % @set.compute_profile.to_label)} | ||
] | ||
end %> | ||
<%= render 'form' %> |
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,3 +1,9 @@ | ||
<% title _("New compute profile on %s") % @set.compute_resource.to_label %> | ||
<%= breadcrumbs do | ||
[ | ||
{caption: _("Compute Resources"), url: (url_for(compute_resources_path) if authorized_for(hash_for_compute_resources_path))}, | ||
{caption: @set.compute_resource.to_label, url: (compute_resource_path(@set.compute_resource) if authorized_for(hash_for_compute_resource_path(@set.compute_resource)))}, | ||
{caption: _("Compute Profiles"), url: (url_for(compute_profiles_path) if authorized_for(hash_for_compute_profiles_path))}, | ||
{caption: _('New %s' % @set.compute_profile.to_label)} | ||
] | ||
end %> | ||
<%= render 'form' %> |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<% title _("Edit Config group") %> | ||
<% title _("Edit %s") % @config_group.to_s %> | ||
<%= render 'form' %> |
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,3 +1,12 @@ | ||
<%= if @host | ||
breadcrumbs do | ||
[ | ||
{caption: _("Hosts"), url: (url_for(hosts_path) if authorized_for(hash_for_hosts_path))}, | ||
{caption: @host.name, url: (host_path(@host) if authorized_for(hash_for_host_path(@host)))}, | ||
{caption: _('Reports'), url: url_for(config_reports_path(search: 'eventful=true'))}, | ||
] | ||
end | ||
end %> | ||
<% title _("Reports") %> | ||
<% title_actions csv_link, documentation_button('3.5.4PuppetReports') %> | ||
<%= render :partial => 'list' %> |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<% title _("Edit Domain") %> | ||
<% title _("Edit %s") % @domain.to_s %> | ||
<%= render :partial => 'form' %> |
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,3 +1,3 @@ | ||
<% title _("Edit Environment") %> | ||
<% title _("Edit %s") % @environment.to_s %> | ||
<%= render :partial => 'form' %> |
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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
<% title _("Edit Filter") %> | ||
<%= breadcrumbs do | ||
[ | ||
(@role.present? ? {caption: _('Roles'), url: (url_for(roles_path) if authorized_for(hash_for_roles_path))} : {caption: _("Filters"), url: filters_path}), | ||
({caption: _("%s filters") % @role.to_s, url: filters_path(role_id: @role.id)} if @role.present?), | ||
{caption: _('Edit %s') % @filter.to_s}, | ||
].compact | ||
end %> | ||
<%= render 'form' %> |
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
<% title _("Create Filter") %> | ||
<%= breadcrumbs do | ||
[ | ||
(@role.present? ? {caption: _('Roles'), url: (url_for(roles_path) if authorized_for(hash_for_roles_path))} : {caption: _("Filters"), url: filters_path}), | ||
({caption: _("%s filters") % @role.to_s, url: filters_path(role_id: @role.id)} if @role.present?), | ||
{caption: _('Create Filter')}, | ||
].compact | ||
end %> | ||
<%= render 'form' %> |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<% title _("Edit HTTP Proxy") %> | ||
<% title _("Edit %s") % @http_proxy.to_s %> | ||
<%= render :partial => 'form' %> |
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,3 +1,9 @@ | ||
<% title(_("Edit %s") % @image) %> | ||
<%= breadcrumbs do | ||
[ | ||
{caption: _("Compute Resources"), url: (url_for(compute_resources_path) if authorized_for(hash_for_compute_resources_path))}, | ||
{caption: _("#{@compute_resource.to_s}"), url: (url_for(compute_resource_path(@compute_resource)) if authorized_for(hash_for_compute_resources_path))}, | ||
{caption: _("Images"), url: (url_for(compute_resource_images_path(@compute_resource)) )}, | ||
{caption: _("Edit %s") % @image} | ||
] | ||
end %> | ||
<%= render 'form' %> |
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 @@ | ||
<%= breadcrumbs do | ||
[ | ||
{caption: _("Compute Resources"), url: (url_for(compute_resources_path) if authorized_for(hash_for_compute_resources_path))}, | ||
{caption: _("#{@compute_resource.to_s}"), url: (url_for(compute_resource_path(@compute_resource)) if authorized_for(hash_for_compute_resources_path))}, | ||
{caption: _("Images")} | ||
] | ||
end %> | ||
<%= title_actions(new_link(_("Create Image"), { :compute_resource_id => @compute_resource.id, :controller => :images }, { :data=>{:target=>"full-page"} })) %> | ||
<%= render :partial => 'list' %> |
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,3 +1,9 @@ | ||
<% title _("Create Image") %> | ||
<%= breadcrumbs do | ||
[ | ||
{caption: _('Compute Resources'), url: (url_for(compute_resources_path) if authorized_for(hash_for_compute_resources_path))}, | ||
{caption: @compute_resource.to_s, url: (url_for(compute_resource_path(@compute_resource)) if authorized_for(hash_for_compute_resource_path(@compute_resource)))}, | ||
{caption: _('Images'), url: (url_for(compute_resource_images_path(@compute_resource)) )}, | ||
{caption: _('Create image')} | ||
] | ||
end %> | ||
<%= render :partial => 'form' %> |
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,21 +1,31 @@ | ||
<div id="main"> | ||
<div id="content" > | ||
<div id="content"> | ||
<%= notifications %> | ||
<% unless @page_header.blank? %> | ||
<div class="row form-group"> | ||
<h1 class="col-md-8"><%=h @page_header %></h1> | ||
<div id="breadcrumb"> | ||
<% unless @page_header.blank? %> | ||
<div class="row form-group"> | ||
<h1 class="col-md-8"> | ||
<%=h @page_header %> | ||
</h1> | ||
</div> | ||
<% end %> | ||
<% if content_for?(:breadcrumbs) %> | ||
<%= yield(:breadcrumbs) %> | ||
<% else %> | ||
<%= mount_breadcrumbs %> | ||
<% end %> | ||
</div> | ||
<div class="row"> | ||
<div class="title_filter <%= searchable? ? " col-md-6 " : "col-md-4 " %>"> | ||
<%= render "common/searchbar" if searchable? %> | ||
<%= yield(:search_bar) %> | ||
</div> | ||
<div id="title_action" class= <%= searchable? ? "col-md-6" : "col-md-8" %>> | ||
<div class="btn-toolbar pull-right"> | ||
<%=h yield(:title_actions) %> | ||
</div> | ||
</div> | ||
</div> | ||
<% end %> | ||
<div class="row"> | ||
<div class="title_filter <%= searchable? ? "col-md-6" : "col-md-4" %>"> | ||
<%= render "common/searchbar" if searchable? %> | ||
<%= yield(:search_bar) %> | ||
</div> | ||
<div id="title_action" class="<%= searchable? ? "col-md-6" : "col-md-8" %>"> | ||
<div class="btn-toolbar pull-right"><%=h yield(:title_actions) %></div> | ||
</div> | ||
</div> | ||
|
||
<%= yield %> | ||
<%= yield %> | ||
</div> | ||
</div> | ||
</div> |
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,3 +1,3 @@ | ||
<% title _("Edit Medium") %> | ||
<% title _("Edit %s") % @medium.to_s %> | ||
<%= render :partial => 'form' %> |
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,3 +1,3 @@ | ||
<% title _("Edit Model") %> | ||
<% title _("Edit %s") % @model.to_s %> | ||
<%= render :partial => 'form' %> |
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,3 +1,3 @@ | ||
<% title _("Edit Template") %> | ||
<% title _("Edit %s") % @template.to_s %> | ||
<%= render :partial => 'form' %> |
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,3 +1,3 @@ | ||
<% title _("Edit Partition Table") %> | ||
<% title _("Edit %s") % @template.to_s %> | ||
<%= render :partial => 'form' %> |
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,3 +1,3 @@ | ||
<% title _("Edit Realm") %> | ||
<% title _("Edit %s") % @realm.to_s %> | ||
<%= render :partial => 'form' %> |
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,3 +1,3 @@ | ||
<% title _("Edit Role") %> | ||
<% title _("Edit %s") % @role.to_s %> | ||
<%= render 'form' %> |
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,3 +1,3 @@ | ||
<% title _("Edit Proxy") %> | ||
<% title _("Edit %s") % @proxy.to_s %> | ||
<%= render :partial => 'form' %> |
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 |
---|---|---|
@@ -1,9 +1,7 @@ | ||
<% title _('Add SSH Key for %s') % @user.name %> | ||
|
||
<ol class="breadcrumb"> | ||
<li class="breadcrumb-item"><%= link_to_if_authorized(_("Users"), hash_for_users_path) %></li> | ||
<li class="breadcrumb-item"><%= link_to_if_authorized(@user.name, hash_for_edit_user_path(@user)) %></li> | ||
<li class="breadcrumb-item active"><%= _('Add SSH Key') %></li> | ||
</ol> | ||
|
||
<%= breadcrumbs do %> | ||
<% [{caption: _("Users"), url: (url_for(users_path) if authorized_for(hash_for_users_path))}, | ||
{caption: @user.name, url: (edit_user_path(@user) if authorized_for(hash_for_edit_user_path(@user)))}, | ||
{caption: _('Add SSH Key')}] %> | ||
<% end %> | ||
<%= render :partial => 'form' %> |
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,3 +1,3 @@ | ||
<% title _("Edit Subnet") %> | ||
<% title _("Edit %s") % @subnet.to_label %> | ||
<%= render :partial => 'form' %> |
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,3 +1,3 @@ | ||
<% title _("Edit User group") %> | ||
<% title _("Edit %s") % @usergroup.to_label %> | ||
<%= render :partial => 'form' %> |
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,3 +1,3 @@ | ||
<% title _("Edit User") %> | ||
<% title _("Edit %s") % @user.to_s %> | ||
<%= render :partial => 'form' %> |
Oops, something went wrong.