From: Simon Brandhof Date: Mon, 26 Nov 2012 13:18:29 +0000 (+0100) Subject: Fix layout X-Git-Tag: 3.4~272 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=15bd39c09adcf4d0b56136fd129ac7eac4105107;p=sonarqube.git Fix layout --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb index f55bca5f408..cc5851e7536 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb @@ -1,6 +1,5 @@ <% selected_section = controller.class::SECTION if defined?(controller.class::SECTION) - if selected_section==Navigation::SECTION_RESOURCE && !@project && !@resource selected_section = Navigation::SECTION_HOME end @@ -18,6 +17,9 @@
  • <%= message('layout.measures') -%>
  • +
  • + <%= message('layout.tools.quality_profiles') -%> +
  • <%= render 'layouts/tools' -%> @@ -41,247 +43,174 @@ -<%= render 'layouts/breadcrumb' if selected_section==Navigation::SECTION_RESOURCE-%> +<%= render 'layouts/breadcrumb' if selected_section==Navigation::SECTION_RESOURCE -%>
    -
    - - - -
    - <%= render 'layouts/breadcrumb' if selected_section==Navigation::SECTION_RESOURCE -%> - -
    - <% if selected_section %> -
    - - <% end %> -
    - <% if @project %> -

    <%= @project.name(true) %>

    + <% if @sidebar %> +
    <%= render :partial => @sidebar %>
    + <% else %> + <% end %> - - - - <%= yield %>
    + <% end %> +
    + <% if @project %> +

    <%= @project.name(true) %>

    + <% end %> + + + + <%= yield %>
    +
    <% unless params[:hd]=='false' %> <%= yield :footer %>