Skip to content

Commit

Permalink
[webui] Rename Kiwi Editor tab to Image Editor
Browse files Browse the repository at this point in the history
And move all the other tabs to the Advanced tab
  • Loading branch information
Moises Deniz Aleman committed Oct 18, 2017
1 parent 25a4880 commit 4782376
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/api/app/views/webui/kiwi/_tabs.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,7 @@

<div class="box-header header-tabs" id="package_tabs">
<ul>
<%= tab 'kiwi', 'Kiwi', controller: 'kiwi/images', action: 'show', selected: true %>
<% if @image.package.name == "patchinfo" %>
<%= tab 'details', 'Details', controller: '/webui/patchinfo', action: 'show' %>
<% end %>
<%= tab 'overview', 'Overview', controller: '/webui/package', action: 'show', package: @image.package %>
<% unless @spider_bot %>
<%= tab 'repositories', 'Repositories', controller: '/webui/repositories', action: 'index' %>
<%= tab 'revisions', 'Revisions', :controller => '/webui/package', :action => 'revisions', package: @image.package %>
<%= tab 'requests', "Requests", :controller => '/webui/package', :action => 'requests', package: @image.package %>
<%= tab 'users', 'Users', :controller => '/webui/package', :action => 'users', package: @image.package %>
<% end %>
<%= tab 'kiwi', 'Image Editor', controller: 'kiwi/images', action: 'show', selected: true %>
<% if is_advanced_tab? %>
<%= content_for :ready_function do %>
$("#advanced_tabs").show();
Expand All @@ -32,6 +22,16 @@
<% unless @spider_bot %>
<div id="advanced_tabs" class="hidden">
<ul>
<%= tab 'overview', 'Overview', controller: '/webui/package', action: 'show', package: @image.package %>
<% if @image.package.name == "patchinfo" %>
<%= tab 'details', 'Details', controller: '/webui/patchinfo', action: 'show' %>
<% end %>
<% unless @spider_bot %>
<%= tab 'repositories', 'Repositories', controller: '/webui/repositories', action: 'index' %>
<%= tab 'revisions', 'Revisions', :controller => '/webui/package', :action => 'revisions', package: @image.package %>
<%= tab 'requests', "Requests", :controller => '/webui/package', :action => 'requests', package: @image.package %>
<%= tab 'users', 'Users', :controller => '/webui/package', :action => 'users', package: @image.package %>
<% end %>
<%= tab 'attributes', 'Attributes', controller: '/webui/attribute', :package => @image.package, :project => @image.package.project , :action => 'index' %>
<%= tab 'meta', 'Meta', :controller => '/webui/package', :action => 'meta', package: @image.package %>
</ul>
Expand Down

0 comments on commit 4782376

Please sign in to comment.