You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by cu...@apache.org on 2017/04/25 15:45:25 UTC

[whimsy] branch master updated: Labels look better here

This is an automated email from the ASF dual-hosted git repository.

curcuru pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  4f3b0c4   Labels look better here
4f3b0c4 is described below

commit 4f3b0c4f2368e645b8c78761215182b289d6da83
Author: Shane Curcuru <as...@shanecurcuru.org>
AuthorDate: Tue Apr 25 11:45:16 2017 -0400

    Labels look better here
---
 www/test/site-check.cgi | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/www/test/site-check.cgi b/www/test/site-check.cgi
index eb5a50c..3f32db1 100755
--- a/www/test/site-check.cgi
+++ b/www/test/site-check.cgi
@@ -20,17 +20,17 @@ def analyze(sites)
       'security' => %r{apache.org/security}i,
       'thanks' => %r{apache.org/foundation/thanks}i
     }.each do |nam, pat|
-      counts[nam]['text-success'] = sites.select{ |k, site| site[nam] =~ pat  }.count
-      counts[nam]['text-warning'] = 0 # Reorder output 
-      counts[nam]['text-danger'] = sites.select{ |k, site| site[nam].nil? }.count
-      counts[nam]['text-warning'] = sites.size - counts[nam]['text-success'] - counts[nam]['text-danger']
+      counts[nam]['label-success'] = sites.select{ |k, site| site[nam] =~ pat  }.count
+      counts[nam]['label-warning'] = 0 # Reorder output 
+      counts[nam]['label-danger'] = sites.select{ |k, site| site[nam].nil? }.count
+      counts[nam]['label-warning'] = sites.size - counts[nam]['label-success'] - counts[nam]['label-danger']
     end
     
     [
       counts, {
-      'text-success' => 'Sites with links to primary ASF page',
-      'text-warning' => 'Sites with link, but not ASF one',
-      'text-danger' => 'Sites with no link for this topic'
+      'label-success' => '# Sites with links to primary ASF page',
+      'label-warning' => '# Sites with link, but not ASF one',
+      'label-danger' => '# Sites with no link for this topic'
       }
     ]
 end
@@ -72,7 +72,7 @@ _html do
           _br
           _ul do
             analysis[1].each do |cls, desc|
-              _li desc, class: cls
+              _li.label desc, class: cls
             end
           end  
         end
@@ -86,7 +86,7 @@ _html do
                 _ col.capitalize
                 analysis[0][col].each do |cls, val|
                   _ ' '
-                  _span.badge val, class: cls
+                  _span.label val, class: cls
                 end
               end
             end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].