]> source.dussan.org Git - sonarqube.git/commitdiff
Various minor improvements of UI
authorSimon Brandhof <simon.brandhof@gmail.com>
Fri, 22 Jul 2011 13:35:32 +0000 (15:35 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Fri, 22 Jul 2011 13:37:14 +0000 (15:37 +0200)
- Rename the sidebar section 'SYSTEM' to 'CONFIGURATION'
- Change the violations drilldown header in order to be consistent with all other pages
- Remove the link 'Plugins' from footer (useless with Update Center)
- Add a title to manual measures page

plugins/sonar-i18n-en-plugin/src/main/resources/org/sonar/i18n/core.properties
sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/violations.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/manual_measures/index.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/project/settings/_plugins.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/settings/_plugins.html.erb

index 9fa9bd006811366cfae06eda95c3255b8c65c0ca..af97a14fad7dcf955d72f16c7212c5d8915e0d73 100644 (file)
@@ -248,12 +248,11 @@ layout.print=Print
 layout.permalink=Permalink
 layout.sonar.slogan=Embrace Quality
 layout.powered_by=Powered by
-layout.plugins=Plugins
 layout.documentation=Documentation
 layout.ask_a_questions=Ask a question
 layout.bug_feature_request=Bug/feature request
 
-sidebar.project_system=System
+sidebar.project_settings=Configuration
 sidebar.security=Security
 sidebar.system=System
 
index 081728efc6b0865969b4deca909df46590c4e86f..88b27e985600577fec4266eabcc1b50082085494 100644 (file)
@@ -6,10 +6,9 @@
 <%
    profile_measure=@snapshot.measure(Metric::PROFILE)
  %>
-<%= link_to_favourite(@project) -%> Version <%= @snapshot.version -%> - <%= l @snapshot.created_at %>
-<% if profile_measure %> - Profile <%= link_to profile_measure.data, :controller => '/rules_configuration', :action => 'index', :id => profile_measure.value.to_i %><% end %>
+<% if profile_measure %>Profile <%= link_to profile_measure.data, :controller => '/rules_configuration', :action => 'index', :id => profile_measure.value.to_i %> - <% end %>
 <% if @snapshot.project_snapshot.periods? %>
-<form method="GET" action="<%= url_for :only_path=>true, :overwrite_params => {:period => nil} -%>" style="display: inline">
+<form method="GET" action="<%= url_for :only_path=>true, :overwrite_params => {:period => nil} -%>" style="display: inline">
     <select id="select-comparison" name="period" onchange="submit()" class="small">
       <option value=""><%= message('time_changes') -%>...</option>
       <%= violation_period_select_options(@snapshot, 1) -%>
index 70f1a4f0cc74f4c5b39db96da468ac5f62e0dde3..1ac79bf85d881d4fb7e75cf87015b6d6e6c0c9ce 100644 (file)
@@ -49,7 +49,7 @@
           <li class="<%= 'selected' if request.request_uri.include?("page=#{page.getId()}") -%>"><a href="<%= ApplicationController.root_context -%>/plugins/resource/<%= @project.id-%>?page=<%= page.getId() -%>"><%= message(page.getId() + '.page', :default => page.getTitle()) %></a></li>
           <% end %>
           <% if has_role?(:admin, @project) %>
-            <li class="h2"><%= message('sidebar.project_system') -%></li>
+            <li class="h2"><%= message('sidebar.project_settings') -%></li>
             <li class="<%= 'selected' if request.request_uri.include?('/manual_measures') -%>"><a href="<%= ApplicationController.root_context -%>/manual_measures/index/<%= @project.id -%>"><%= message('manual_measures.page') -%></a></li>
             <% if (@project.project? || @project.module?) %>
               <li class="<%= 'selected' if request.request_uri.include?('/project/settings') -%>"><a href="<%= ApplicationController.root_context -%>/project/settings/<%= @project.id -%>"><%= message('project_settings.page') -%></a></li>
   Open Source <a href="http://www.sonarsource.org/documentation/license/" target="license" class="external">LGPL</a> 
   - 
   v.<%= sonar_version -%> 
-  - 
-  <a href="http://sonar-plugins.codehaus.org" class="external" target="plugins"><%= message('layout.plugins') -%></a> 
-  - 
+  -
   <a href="http://sonar.codehaus.org/documentation" class="external" target="sonar_doc" class="external"><%= message('layout.documentation') -%></a> 
   - 
   <a href="http://sonar.codehaus.org/support/" target="support" class="external"><%= message('layout.ask_a_questions') -%></a> 
index 0b19dcd646b003053975386b1f25db69cd17d051..69375a40a26f004bb0aeb649feeaf63f88eee5de 100644 (file)
@@ -10,6 +10,7 @@
     width: 2px;
   }
 </style>
+
 <div class="line-block marginbottom10">
   <ul class="operations">
     <li class="last">
       <a href="<%= ApplicationController.root_context -%>/manual_measures/new/<%= @resource.id -%>" id="addMeasureLink">Add measure</a>
     </li>
   </ul>
+  <h1>Manual measures</h1>
 </div>
 
+
 <table class="width100 data sortable" id="manualMeasures">
   <thead>
   <tr>
index 445b5598a21b32cda6879ea66be66b4f2c3d76d1..7582ee2d3d4d2d05a04fb3f7af1f28a04585b689 100644 (file)
@@ -1,4 +1,4 @@
-<h2>Plugin settings</h2>
+<h1 class="marginbottom10">Settings</h1>
 <div class="yui-g widget" id="widget_plugins">
 <%= render :partial => 'settings/plugins', :locals => {:project=>@project} %>
 </div>
\ No newline at end of file
index e4bc30eb9614ea6dca092aa66635435cb26c5b79..d0d7ad83c441ffc73a000658a1c654c79d9bbb12 100644 (file)
@@ -55,7 +55,7 @@
                         </tbody>
                     </table>
                     <br/>
-                    <%= submit_tag('save parameters') %>
+                    <%= submit_tag('Save parameters') %>
                 </td>
                 <td class="column">