From 15bd39c09adcf4d0b56136fd129ac7eac4105107 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 26 Nov 2012 14:18:29 +0100 Subject: [PATCH] Fix layout --- .../app/views/layouts/_layout.html.erb | 361 +++++++----------- 1 file changed, 145 insertions(+), 216 deletions(-) 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 %> -- 2.39.5