aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-07-22 16:25:51 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-07-22 16:25:51 +0200
commit6ee6fd590ab7d3b36dbc39ec7323adbfe8a13f9e (patch)
tree549c67b478f68e4d32adc787223dd34127163ed9 /sonar-server
parentf6e1fda65d212e35a99fdfa0c3d3e1b7b6061cd6 (diff)
downloadsonarqube-6ee6fd590ab7d3b36dbc39ec7323adbfe8a13f9e.tar.gz
sonarqube-6ee6fd590ab7d3b36dbc39ec7323adbfe8a13f9e.zip
SONAR-2636 Display keys in the administration console of manual metrics
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/metrics/index.html.erb10
1 files changed, 6 insertions, 4 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/metrics/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/metrics/index.html.erb
index 7c1c0f6da9a..9eed83c9fd7 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/metrics/index.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/metrics/index.html.erb
@@ -4,6 +4,7 @@
<table class="sortable data width100" id="metrics">
<thead>
<tr>
+ <th class="left">Key</th>
<th class="left">Name</th>
<th class="left">Description</th>
<th class="left">Domain</th>
@@ -14,10 +15,11 @@
<tbody>
<% @metrics.each do |metric| %>
<tr>
- <td class="left" nowrap><%= h metric.short_name %></td>
- <td class="left"><%= h metric.description %></td>
- <td class="left" ><%= metric.domain %></td>
- <td class="left" ><%= metric.value_type_name %></td>
+ <td class="left" nowrap><span class="note"><%= metric.key -%></span></td>
+ <td class="left" nowrap><%= h metric.short_name -%></td>
+ <td class="left"><%= h metric.description -%></td>
+ <td class="left" ><%= metric.domain -%></td>
+ <td class="left" ><%= metric.value_type_name -%></td>
<td class="left" width="1%" nowrap>
<% if is_admin? && metric.updatable_online? %>
<%= button_to 'Edit', {:action => 'index', :id => metric.id}, {:class => 'action', :id => "edit_#{h(metric.short_name)}", :method => 'get'} %>