From: Jean-Baptiste Lievremont Date: Fri, 8 Aug 2014 08:52:54 +0000 (+0200) Subject: SONAR-4907 Enhance readability of search related info in system page X-Git-Tag: 4.5-RC1~200 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d37071a5334690d075d551030a2d6b5275aeaa13;p=sonarqube.git SONAR-4907 Enhance readability of search related info in system page --- diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb b/server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb index e68898db2d8..e33a68466ea 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb @@ -89,9 +89,9 @@ class Server add_property(search_info, 'CPU Load Average') { node_health.getProcessCpuPercent() } search_health.getIndexHealth().each do |name, index_health| - add_property(search_info, "Document Count (#{name})") { index_health.getDocumentCount() } - add_property(search_info, "Last Sync (#{name})") { index_health.getLastSynchronization() } - add_property(search_info, "Optimization (#{name})") { index_health.isOptimized() ? 'Optimized' : "Unoptimized (Segments: #{index_health.getSegmentcount()}, Pending Deletions: #{index_health.getPendingDeletion()})" } + add_property(search_info, "#{name} - Document Count") { index_health.getDocumentCount() } + add_property(search_info, "#{name} - Last Sync") { index_health.getLastSynchronization() } + add_property(search_info, "#{name} - Optimization") { index_health.isOptimized() ? 'Optimized' : "Unoptimized (Segments: #{index_health.getSegmentcount()}, Pending Deletions: #{index_health.getPendingDeletion()})" } end search_info