]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4907 Enhance readability of search related info in system page
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Fri, 8 Aug 2014 08:52:54 +0000 (10:52 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Fri, 8 Aug 2014 08:52:54 +0000 (10:52 +0200)
server/sonar-web/src/main/webapp/WEB-INF/app/models/server.rb

index e68898db2d880d6b4231155948cd2514d920e095..e33a68466eaeae4838b250ee30ed4bdf4f719996 100644 (file)
@@ -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