]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5173 Check, move, add, delete icons
authorStas Vilchik <vilchiks@gmail.com>
Mon, 31 Mar 2014 11:03:50 +0000 (17:03 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 31 Mar 2014 11:03:50 +0000 (17:03 +0600)
sonar-server/src/main/less/icons.less
sonar-server/src/main/less/variables.less
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/dashboards/index.html.erb

index 46bc7f6517ab24f07ef9bc0fc2bc9b156d1d3b25..ebb133ef49c1b4dbca8ff740a073fa2dc6f5207e 100644 (file)
@@ -262,6 +262,8 @@ a[class^="icon-"], a[class*=" icon-"] {
 }
 .icon-check:before {
   content: "\f00c";
+  color: @green;
+  font-size: @iconFontSize;
 }
 .icon-default:before {
   position: relative;
@@ -323,6 +325,7 @@ a[class^="icon-"], a[class*=" icon-"] {
 }
 .icon-delete:before {
   content: "\f00d";
+  color: @red;
   font-size: @iconFontSize;
 }
 .icon-compare:before {
@@ -336,25 +339,31 @@ a[class^="icon-"], a[class*=" icon-"] {
 }
 .icon-plus:before {
   content: "\f067";
+  color: @green;
+  font-size: @iconFontSize;
 }
 .icon-link:before {
   content: "\f127";
   font-size: @iconSmallFontSize;
 }
 .icon-move-down:before {
-  content: "\f0d7";
+  content: "\f063";
+  color: @darkBlue;
   font-size: @iconFontSize;
 }
 .icon-move-up:before {
-  content: "\f0d8";
+  content: "\f062";
+  color: @darkBlue;
   font-size: @iconFontSize;
 }
 .icon-move-left:before {
-  content: "\f0d9";
+  content: "\f060";
+  color: @darkBlue;
   font-size: @iconFontSize;
 }
 .icon-move-right:before {
-  content: "\f0da";
+  content: "\f061";
+  color: @darkBlue;
   font-size: @iconFontSize;
 }
 .icon-scm:before {
index 34bcca25b83595aec4f4c30fffc527b77c3afe57..bcec0d5612387692965c6f8b4b7b8c1716f3e275 100644 (file)
@@ -25,6 +25,8 @@
 @orange: #f90;
 @purple: #9139d4;
 
+@darkBlue: darken(@blue, 20%);
+
 @highlighted: @blue;
 @contextBackground: lighten(@purple, 40%);
 @contextBorder: lighten(@purple, 30%);
@@ -54,8 +56,6 @@
 @resolutionFalsePositiveColor: @baseFontColor;
 @resolutionRemovedColor: @baseFontColor;
 
-@qualifierColor: darken(@orange, 30%);
-
 
 
 /*
index 6273069f0be9dee847ae1c9e6fd38555e1472e32..5737650fb8004da6a3525f6332a245527743f04c 100644 (file)
@@ -23,7 +23,7 @@
           <div class="description"><%= h dashboard.description -%></div>
         </td>
         <td class="shared">
-          <%= boolean_icon(dashboard.shared) -%>
+          <% if (dashboard.shared) %><i class="icon-check"></i><% end %>
         </td>
         <td class="owner">
           <%= h(dashboard.user_name || message('dashboard.username.default')) -%>
index 46ddb076eac6939d5865e2280179a42bc7c46196..68240dea7290489216710efc0633c88df7414e07 100644 (file)
           <div class="description"><%= h dashboard.description -%></div>
         </td>
         <td class="shared">
-          <%= boolean_icon(dashboard.shared, {:id => "dashboard-#{index}-shared"}) -%>
+          <% if (dashboard.shared) %><i class="icon-check" id='<%= "dashboard-#{index}-shared" -%>'></i><% end %>
         </td>
         <td class="owner">
           <%= h(dashboard.user_name || message('dashboard.username.default')) -%>
         </td>
         <td class="order">
           <% if index > 0 %>
-            <%= link_to image_tag('blue-up.png'), {:action => :up, :id => dashboard.id, :resource => resource_id}, :method => :post, :id => "up-#{u dashboard.name}" %>
+            <%= link_to '', {:action => :up, :id => dashboard.id, :resource => resource_id}, :method => :post, :id => "up-#{u dashboard.name}", :class => "icon-move-up" %>
           <% else %>
             <%= image_tag('transparent_16.gif') %>
           <% end %>
           <% if index < @actives.size-1 %>
-            <%= link_to image_tag('blue-down.png'), {:action => :down, :id => dashboard.id, :resource => resource_id}, :method => :post, :id => "down-#{u dashboard.name}" %>
+            <%= link_to '', {:action => :down, :id => dashboard.id, :resource => resource_id}, :method => :post, :id => "down-#{u dashboard.name}", :class => "icon-move-down" %>
           <% else %>
             <%= image_tag('transparent_16.gif') %>
         <% end %>
index 47433622e54c246e802ebe22fcdce16d0b25743b..abfba14a59abaa2c7ccef0a49e6d7a4eead0fee7 100644 (file)
@@ -1,6 +1,7 @@
 <div class="admin_page">
   <ul style="float: right" class="horizontal">
-    <li class="marginleft10 add">
+    <li class="marginleft10">
+      <i class="icon-plus"></i>
       <%= link_to message('create'), {:action => :create_form, :resource => (@resource.id if @resource)}, :id => "create-link-dashboard", :class => 'open-modal link-action' %>
     </li>
   </ul>