summaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-09-30 13:51:24 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-09-30 13:51:24 +0000
commit3ec1456685ba118d8e7b1a944179190db3005a48 (patch)
tree4c0e4300f4fce83303d885385efd6adb0a3772d7 /sonar-server
parent9db8ba7bf8f6450d309878fa2ad607e3ef9831b4 (diff)
downloadsonarqube-3ec1456685ba118d8e7b1a944179190db3005a48.tar.gz
sonarqube-3ec1456685ba118d8e7b1a944179190db3005a48.zip
improve the display of rules in profile console
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule.html.erb16
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule_param.html.erb3
-rw-r--r--sonar-server/src/main/webapp/stylesheets/style.css7
3 files changed, 11 insertions, 15 deletions
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 c82f83d7dc9..b958ef981b9 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
@@ -28,8 +28,7 @@
<br/>
<div id="desc_<%= rule.id -%>" class="rule_desc" style="display:none">
<%= rule.description %>
- <% if rule.parameters.size>0 %>
- <table >
+ <table style="margin: 10px 0">
<% rule.parameters.each do |parameter|
active_parameter = active_rule.active_param_by_param_id(parameter.id) if active_rule
%>
@@ -38,16 +37,17 @@
:locals => {:parameter => parameter, :active_parameter => active_parameter, :profile => profile, :active_rule => active_rule, :is_admin => is_admin } %>
</tbody>
<% end %>
- </table>
- <% end %>
- <br/><span>Key: <%= rule.plugin_rule_key -%></span>
+ <tr>
+ <td width="10%" nowrap class="left">Key: &nbsp;</td>
+ <td class="left"><%= rule.plugin_rule_key -%></td>
+ </tr>
+ </table>
<% if is_admin %>
- <br/>
<% if rule.template? %>
- <a href="<%= url_for :action => 'new', :id => profile.id, :rule_id => rule.id -%>">Create new rule from this template</a>
+ <%= button_to "Create new rule from this template", :action => 'new', :id => profile.id, :rule_id => rule.id %>
<% end %>
<% if rule.editable? %>
- <a href="<%= url_for :action => 'edit', :id => profile.id, :rule_id => rule.id -%>">Edit rule</a>
+ <%= button_to "Edit rule", :action => 'edit', :id => profile.id, :rule_id => rule.id -%>
<% end %>
<% end %>
</div>
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule_param.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule_param.html.erb
index 0853d57e03b..9428a80b60a 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule_param.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/_rule_param.html.erb
@@ -10,8 +10,7 @@
%>
<tr>
<td width="10%" nowrap class="left">
- <%= image_tag 'bullet.png' %>
- <%= parameter.name %>
+ <%= parameter.name %>: &nbsp;
</td>
<td width="90%" nowrap class="left">
<%= form_remote_tag :url => {:action => 'update_param', :id => active_param_id, :profile_id => profile.id, :param_id => parameter.id, :active_rule_id => active_rule_id},
diff --git a/sonar-server/src/main/webapp/stylesheets/style.css b/sonar-server/src/main/webapp/stylesheets/style.css
index 93369b546f6..13e41bd95df 100644
--- a/sonar-server/src/main/webapp/stylesheets/style.css
+++ b/sonar-server/src/main/webapp/stylesheets/style.css
@@ -1237,7 +1237,7 @@ ul.bullet li {
.rule_desc {
color: #444;
- padding: 2px 0 15px 0;
+ padding: 2px 0;
}
.rule_desc li {
@@ -1438,10 +1438,7 @@ table.data2 > thead > tr > th, table.data2 > tbody > tr > td {
border-bottom: 1px solid #DDD;
padding: 3px 5px;
height: 20px;
- vertical-align: middle;
-}
-table.data2 > tbody > tr > td {
- vertical-align: middle;
+ vertical-align: top;
}
table.data2 > thead > tr > th {
font-weight: bold;