From: Simon Brandhof Date: Wed, 13 Mar 2013 17:04:19 +0000 (+0100) Subject: Improve CSS of rule status (deprecated/beta) X-Git-Tag: 3.6~891^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=796be097d0bd8e89b2c8087054661a410d30843c;p=sonarqube.git Improve CSS of rule status (deprecated/beta) --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb index eb0b3d9ad16..907f215a332 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb @@ -29,21 +29,21 @@ + <% unless rule.ready? %> +
+ <% if rule.beta? %> + <%= message('rules_configuration.status.beta') %> + <% elsif rule.deprecated? %> + <%= message('rules_configuration.status.deprecated') %> + <% end %> +
+ <% end %> +
<%= link_to_function("#{h rule.name}", nil, :class => "") do |page| page.toggle "desc_#{rule.id}" end %>
- <% if !rule.ready? %> -
- <% if rule.beta? %> -
<%= message('rules_configuration.status.beta') %>
- <% elsif rule.deprecated? %> -
<%= message('rules_configuration.status.deprecated') %>
- <% end %> -
- <% end %> -
@@ -110,13 +110,13 @@
-
<%= message('rules_configuration.repository')%> : <%= rule.repository_key %>
-
<%= message('key')%> : <%= rule.plugin_rule_key %>
+
<%= message('rules_configuration.repository') %> : <%= rule.repository_key %>
+
<%= message('key') %> : <%= rule.plugin_rule_key %>
<% if !rule.removed? %> -
<%= message('rules_configuration.available_since')%> : <%= human_short_date(rule.created_at) %>
+
<%= message('rules_configuration.available_since') %> : <%= human_short_date(rule.created_at) %>
<% else %> -
<%= message('rules_configuration.removed_since')%> : <%= human_short_date(rule.updated_at) %>
- <% end %> +
<%= message('rules_configuration.removed_since') %> : <%= human_short_date(rule.updated_at) %>
+ <% end %>
diff --git a/sonar-server/src/main/webapp/stylesheets/style.css b/sonar-server/src/main/webapp/stylesheets/style.css index b8cfd25e79c..3037f4831c2 100644 --- a/sonar-server/src/main/webapp/stylesheets/style.css +++ b/sonar-server/src/main/webapp/stylesheets/style.css @@ -2444,17 +2444,13 @@ textarea.width100 { } .rule-status { - display: inline-block; margin-left: 10px; float: right; - background-color: #e7e7e7; - padding: 3px; -} - -.rule-status .status-beta { - color: #5e8790; + padding: 3px 5px 0 0; } -.rule-status .status-deprecated { - color: #906947; +.rule-status span { + text-transform: uppercase; + font-size: 85%; + color: #777; } \ No newline at end of file