From 8236430c6c5c67b8a7a229dd50395eac876725c6 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Tue, 21 Apr 2015 16:46:53 +0200 Subject: [PATCH] improve display of empty drilldown --- .../main/webapp/WEB-INF/app/views/drilldown/measures.html.erb | 4 ++++ sonar-core/src/main/resources/org/sonar/l10n/core.properties | 1 + 2 files changed, 5 insertions(+) diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb index e800b24ed0e..4c90ff7e1cc 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/drilldown/measures.html.erb @@ -51,6 +51,10 @@ <% end %> + <% unless @drilldown.columns.size > 0 %> +
<%= h message('drilldown.no_items_found') -%>
+ <% end %> +
<% rids=[] diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index b93c8a9663c..929f532acb2 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -1469,6 +1469,7 @@ drilldown.drilldown_on=Drilldown on issues_drilldown.col.severity=Severity issues_drilldown.col.rule=Rule issues_drilldown.no_issue=No issue +drilldown.no_items_found=No items found #------------------------------------------------------------------------------ -- 2.39.5