]> source.dussan.org Git - sonarqube.git/commitdiff
Improve CSS
authorSimon Brandhof <simon.brandhof@gmail.com>
Fri, 21 Sep 2012 19:13:50 +0000 (21:13 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Fri, 21 Sep 2012 19:13:50 +0000 (21:13 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_available_dashboards.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_my_dashboards.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_head.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/profiles/_rename_form.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/profiles/index.html.erb
sonar-server/src/main/webapp/stylesheets/style.css

index ca88843c2cda9580a5afb272c127f8bf4ff68ed8..1146206e2fd566e5ecf1e485a43144cef45c06ff 100644 (file)
@@ -19,7 +19,7 @@
       <tr id="dashboard-<%= dashboard.id -%>" class="<%= cycle('even', 'odd', :name => 'shared') -%>">
         <td>
           <%= link_to h(dashboard.name(true)), {:controller => :dashboard, :action => :index, :did => dashboard.id, :id => (params[:resource] unless dashboard.global?)},
-                      :id => "view-#{u dashboard.name}", :class => 'link-action' %>
+                      :id => "view-#{u dashboard.name}" %>
           <div class="description"><%= h dashboard.description -%></div>
         </td>
         <td class="shared">
index f6cd8d762a1cc3774e908cf6c520386603d6cc9a..193af39786f42dc0e69fae9914c4d4c308c9ad01 100644 (file)
@@ -18,7 +18,7 @@
       <tr id="dashboard-<%= dashboard.id -%>" class="<%= cycle('even', 'odd', :name => 'dashboard') -%>">
         <td>
           <%= link_to h(dashboard.name(true)), {:controller => :dashboard, :action => :index, :did => dashboard.id, :id => (params[:resource] unless dashboard.global?)},
-                      :id => "view-#{u dashboard.name}", :class => 'link-action' %>
+                      :id => "view-#{u dashboard.name}" %>
           <div class="description"><%= h dashboard.description -%></div>
         </td>
         <td class="shared">
index c2f6ada98e35aafb26e01483fb05f62c0008043b..8ef39b808f0baa7b0839a9b4b677d115ba86574f 100644 (file)
@@ -1,50 +1,61 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<meta name="gwt:property" content="locale=<%= I18n.locale.to_s.gsub(/-/, '_') -%>">
-<meta http-equiv="X-UA-Compatible" content="IE=9">
-<link rel="shortcut icon" type="image/x-icon" href="<%= image_path('favicon.ico') -%>" />
-<%
-  if @project
-%><link rel="alternate" title="Sonar Alerts on <%= @project.name -%>" href="<%= ApplicationController.root_context -%>/feeds/project/<%= @project.key -%>?category=<%= EventCategory::KEY_ALERT -%>" type="application/atom+xml">
-<%
-   else
-%><link rel="alternate" title="Sonar Alerts" href="<%= ApplicationController.root_context -%>/feeds/projects/<%= EventCategory::KEY_ALERT -%>" type="application/atom+xml"><%
-  end
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+  <meta name="gwt:property" content="locale=<%= I18n.locale.to_s.gsub(/-/, '_') -%>">
+  <meta http-equiv="X-UA-Compatible" content="IE=9">
+  <link rel="shortcut icon" type="image/x-icon" href="<%= image_path('favicon.ico') -%>"/>
+  <%
+     if @project
+  %>
+    <link rel="alternate" title="Sonar Alerts on <%= @project.name -%>" href="<%= ApplicationController.root_context -%>/feeds/project/<%= @project.key -%>?category=<%= EventCategory::KEY_ALERT -%>" type="application/atom+xml">
+  <%
+     else
+  %>
+    <link rel="alternate" title="Sonar Alerts" href="<%= ApplicationController.root_context -%>/feeds/projects/<%= EventCategory::KEY_ALERT -%>" type="application/atom+xml">
+  <%
+     end
 
-  if @page_title
-    title="Sonar - #{h(@page_title)}"
-  elsif @project
-    title="Sonar - #{h(@project.name)}"
-  elsif @resource
-    title="#{h(@resource.long_name)}"
-  else
-    title='Sonar'
-  end
-%>
-<title><%= title -%></title>
-<% if ENV['RAILS_ENV'] == 'production'
-%><%= stylesheet_link_tag 'sonar', :media => 'all' -%><%= javascript_include_tag 'sonar'
--%><% else %>
-<%= stylesheet_link_tag 'yui-reset-font', :media => 'all' %>
-<%= stylesheet_link_tag 'select2', :media => 'all' %>
-<%= stylesheet_link_tag 'layout', :media => 'all' %>
-<%= stylesheet_link_tag 'jquery-ui', :media => 'all' %>
-<%= stylesheet_link_tag 'style', :media => 'all' %>
-<%= stylesheet_link_tag 'sonar-colorizer', :media => 'all' %>
-<%= stylesheet_link_tag 'dashboard', :media => 'all' %>
-<%= javascript_include_tag 'prototype' %>
-<%= javascript_include_tag 'scriptaculous' %>
-<%= javascript_include_tag 'tablekit' %>
-<%= javascript_include_tag 'jquery.min' %>
-<%= javascript_include_tag 'jquery-ui.min' %>
-<%= javascript_include_tag 'select2.min' %>
-<%= javascript_include_tag 'protovis' %>
-<%= javascript_include_tag 'protovis-sonar' %>
-<%= javascript_include_tag 'application' %>
-<%= javascript_include_tag 'dashboard' %>
-<%= javascript_include_tag 'duplication' %>
-<%= javascript_include_tag 'resource' %>
-<% end %>
-<!--[if lte IE 8]><%= javascript_include_tag 'protovis-msie' -%><![endif]-->
-<script>var baseUrl = '<%= ApplicationController.root_context -%>';var $j = jQuery.noConflict();<%= yield :javascript_header -%></script>
-</head><body>
\ No newline at end of file
+     if @page_title
+       title="Sonar - #{h(@page_title)}"
+     elsif @project
+       title="Sonar - #{h(@project.name)}"
+     elsif @resource
+       title="#{h(@resource.long_name)}"
+     else
+       title='Sonar'
+     end
+  %>
+  <title><%= title -%></title>
+  <% if ENV['RAILS_ENV'] == 'production'
+  %>
+    <%= stylesheet_link_tag 'sonar', :media => 'all' -%>
+    <%= yield :css -%>
+    <%= javascript_include_tag 'sonar' -%>
+  <% else %>
+    <%= stylesheet_link_tag 'yui-reset-font', :media => 'all' %>
+    <%= stylesheet_link_tag 'select2', :media => 'all' %>
+    <%= stylesheet_link_tag 'layout', :media => 'all' %>
+    <%= stylesheet_link_tag 'jquery-ui', :media => 'all' %>
+    <%= stylesheet_link_tag 'style', :media => 'all' %>
+    <%= stylesheet_link_tag 'sonar-colorizer', :media => 'all' %>
+    <%= stylesheet_link_tag 'dashboard', :media => 'all' %>
+    <%= javascript_include_tag 'prototype' %>
+    <%= javascript_include_tag 'scriptaculous' %>
+    <%= javascript_include_tag 'tablekit' %>
+    <%= javascript_include_tag 'jquery.min' %>
+    <%= javascript_include_tag 'jquery-ui.min' %>
+    <%= javascript_include_tag 'select2.min' %>
+    <%= javascript_include_tag 'protovis' %>
+    <%= javascript_include_tag 'protovis-sonar' %>
+    <%= javascript_include_tag 'application' %>
+    <%= javascript_include_tag 'dashboard' %>
+    <%= javascript_include_tag 'duplication' %>
+    <%= javascript_include_tag 'resource' %>
+  <% end %>
+  <!--[if lte IE 8]><%= javascript_include_tag 'protovis-msie' -%><![endif]-->
+  <script>var baseUrl = '<%= ApplicationController.root_context -%>';
+  var $j = jQuery.noConflict();</script>
+  <%= yield :script -%>
+</head>
+<body>
\ No newline at end of file
index f64315285e5c2ab4973cd00082ca5b31314556fa..d024b74794049486e4d580019c76c623fb4a62fc 100644 (file)
@@ -1,4 +1,4 @@
-<h2 class="modal-title" xmlns="http://www.w3.org/1999/html">Rename Profile</h2>
+<h2 class="modal-title">Rename Profile: <%= h @profile.name -%></h2>
 <form id="form-rename-profile" method="post" action="profiles/rename">
   <input type="hidden" name="id" value="<%= @profile.id -%>"/>
 
@@ -7,10 +7,6 @@
   <% end %>
 
   <fieldset>
-    <div class="form-field">
-      <label for="">Old name</label>
-      <input type="text" disabled="disabled" value="<%= h @profile.name -%>"/>
-    </div>
     <div class="form-field">
       <label for="name">New name</label>
       <input id="new-name" name="name" type="text"/>
index e1e8e3bd93e176c6243af0d2f63324d9b0e20353..b69715c0791cb76fbefc094d272d3c10c1eb27a4 100644 (file)
 <br/><br/>
 <% end %>
 
-<% content_for :javascript_header do %>
+<% content_for :script do %>
+<script>
   $j(document).ready(function () {
     $j('.open-modal').modal();
   });
+</script>
 <% end %>
index b628cbeffd2755c74f6cb96c72fb84a04faed8e2..565a81f3bfbbd94d24de5f5d94b07a484713d8db 100644 (file)
@@ -2368,13 +2368,13 @@ select.medium-width {
 }
 .form-footer {
   text-align: right;
-  padding: 0.5em;
+  padding: 4px 10px;
   border-top: 1px solid #CCC;
 }
 .form-footer input {
   margin-right: 10px;
 }
 input[type=text],input[type=password] {
-  height: 20px;
-  padding: 0 5px;
+  height: 18px;
+  padding: 0 3px;
 }