Skip to content

Commit

Permalink
Convert hash rockets to symbolized form
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Dec 16, 2018
1 parent 3d4ddf7 commit ab8dc0f
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/api/app/views/webui/project/_tabs.html.erb
Expand Up @@ -7,20 +7,20 @@

<div class="box-header header-tabs" id="project_tabs">
<ul>
<%= tab 'overview', 'Overview', :controller => '/webui/project', :action => :show %>
<%= tab 'overview', 'Overview', controller: '/webui/project', action: :show %>
<% if @is_maintenance_project && !@spider_bot %>
<%= tab 'incidents', 'Incidents', :controller => '/webui/project', :action => :maintenance_incidents %>
<%= tab 'maintained', 'Maintained Projects', :controller => '/webui/project', :action => :maintained_projects %>
<%= tab 'incidents', 'Incidents', controller: '/webui/project', action: :maintenance_incidents %>
<%= tab 'maintained', 'Maintained Projects', controller: '/webui/project', action: :maintained_projects %>
<% else %> <!-- also for incident project -->
<%= tab 'repositories', "Repositories", :controller => '/webui/repositories', :action => :index unless @project.defines_remote_instance? || @spider_bot %>
<%= tab 'repositories', "Repositories", controller: '/webui/repositories', action: :index unless @project.defines_remote_instance? || @spider_bot %>
<% end %>
<% if @project.repositories.any? && !@spider_bot -%>
<%= tab 'monitor', "Monitor", :controller => '/webui/project', :action => :monitor %>
<%= tab 'monitor', "Monitor", controller: '/webui/project', action: :monitor %>
<% end -%>
<% unless @spider_bot -%>
<%= tab 'requests', "Requests", :controller => '/webui/project', :action => 'requests' %>
<%= tab 'users', 'Users', :controller => '/webui/project', :action => :users unless @project.defines_remote_instance? %>
<%= tab 'subprojects', 'Subprojects', :controller => '/webui/project', :action => :subprojects unless @project.defines_remote_instance? || @is_maintenance_project %>
<%= tab 'requests', "Requests", controller: '/webui/project', action: 'requests' %>
<%= tab 'users', 'Users', controller: '/webui/project', action: :users unless @project.defines_remote_instance? %>
<%= tab 'subprojects', 'Subprojects', controller: '/webui/project', action: :subprojects unless @project.defines_remote_instance? || @is_maintenance_project %>
<% end -%>
<% if is_advanced_tab? %>
Expand All @@ -33,12 +33,12 @@
</ul>
<div id="advanced_tabs" class="hidden">
<ul>
<%= tab 'projectconfig', 'Project Config', :controller => '/webui/projects/project_configuration', :action => :show unless @project.defines_remote_instance? || @is_maintenance_project %>
<%= tab 'projectconfig', 'Project Config', controller: '/webui/projects/project_configuration', action: :show unless @project.defines_remote_instance? || @is_maintenance_project %>
<% unless @spider_bot -%>
<%= tab 'attribute', 'Attributes', :controller => '/webui/attribute', :project => @project, :action => 'index' %>
<%= tab 'meta', "Meta", :controller => '/webui/projects/meta', :action => :show %>
<%= tab 'status', 'Status', :controller => '/webui/project', :action => :status unless @project.defines_remote_instance? || @is_maintenance_project %>
<%= tab 'pulse', 'Pulse', :controller => '/webui/projects/pulse', :action => :show %>
<%= tab 'attribute', 'Attributes', controller: '/webui/attribute', project: @project, action: 'index' %>
<%= tab 'meta', "Meta", controller: '/webui/projects/meta', action: :show %>
<%= tab 'status', 'Status', controller: '/webui/project', action: :status unless @project.defines_remote_instance? || @is_maintenance_project %>
<%= tab 'pulse', 'Pulse', controller: '/webui/projects/pulse', action: :show %>
<% end -%>
</ul>
</div>
Expand Down

0 comments on commit ab8dc0f

Please sign in to comment.