From 67fe723d894ac406fe7b859bdcd13d5ea35e6f6e Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 1 Aug 2011 10:56:27 +0200 Subject: [PATCH] SONAR-2547 add legend of pending measures --- .../resources/org/sonar/l10n/core.properties | 3 ++- .../app/views/manual_measures/index.html.erb | 18 ++++++++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties index eca2bc256e9..ba9f2dfe8cd 100644 --- a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties +++ b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties @@ -547,7 +547,8 @@ manual_measures.col.last_change=Last change manual_measures.col.last_change_label=By {0} at {1} manual_measures.add_measure_title=Add manual measure manual_measures.save_button=Save -manual_measures.save_and_add_button=Save & Add new again +manual_measures.save_and_add_button=Save & Add new +manual_measures.pending_message=Pending measures are marked with orange box. Their values will be integrated to project during next analysis. #------------------------------------------------------------------------------ diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/manual_measures/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/manual_measures/index.html.erb index b6d5665f784..83ad8e38e64 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/manual_measures/index.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/manual_measures/index.html.erb @@ -5,7 +5,6 @@ #manualMeasures td.pendingMeasure { background-color: orange; - cursor: help; padding: 0 2px; width: 2px; } @@ -21,7 +20,7 @@

<%= message('manual_measures.page') -%>

- +<% has_pendings=false %> @@ -44,8 +43,10 @@ %> - <% if measure.pending?(@snapshot) %> - + <% if measure.pending?(@snapshot) + has_pendings=true + %> + <% else %> <% end %> @@ -67,3 +68,12 @@
+ +<% if has_pendings %> +
+

+ + <%= message('manual_measures.pending_message') -%> +

+
+<% end %> \ No newline at end of file -- 2.39.5