You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2017/05/15 13:11:10 UTC
[whimsy] branch master updated (44ca999 -> a384e1f)
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git.
from 44ca999 minor cleanup
new 052366f hypertext links
new a384e1f restore and expand upon comment
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.
Summary of changes:
www/site.cgi | 31 ++++++++++++++++++++++++++-----
1 file changed, 26 insertions(+), 5 deletions(-)
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].
[whimsy] 02/02: restore and expand upon comment
Posted by ru...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
commit a384e1f5887d07e9d66e8ae66d451fcb853e10b6
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Mon May 15 09:10:58 2017 -0400
restore and expand upon comment
---
www/site.cgi | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/www/site.cgi b/www/site.cgi
index 0f4aef5..2c37691 100755
--- a/www/site.cgi
+++ b/www/site.cgi
@@ -53,10 +53,16 @@ def analyze(sites)
]
end
-def label(analysis, links, c, n)
- if not links[c]
+# Determine the color of a given table cell, given:
+# - overall analysis of the sites, in particular the third column
+# which is a list projects that successfully matched the check
+# - list of links for the project in question
+# - the column in question (which indicates the check being reported on)
+# - the name of the project
+def label(analysis, links, col, name)
+ if not links[col]
'label-danger'
- elsif analysis[2].include? c and not analysis[2][c].include? n
+ elsif analysis[2].include? col and not analysis[2][col].include? name
'label-warning'
else
'label-success'
--
To stop receiving notification emails like this one, please contact
"commits@whimsical.apache.org" <co...@whimsical.apache.org>.
[whimsy] 01/02: hypertext links
Posted by ru...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
commit 052366f7383156b974d46d74236aa2ceecf1776b
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Mon May 15 08:36:26 2017 -0400
hypertext links
---
www/site.cgi | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/www/site.cgi b/www/site.cgi
index daf0092..0f4aef5 100755
--- a/www/site.cgi
+++ b/www/site.cgi
@@ -121,7 +121,15 @@ _html do
cls = label(analysis, links, col, project)
_tr do
_td col.capitalize
- _td links[col], class: cls
+
+ if links[col] =~ /^https?:/
+ _td class: cls do
+ _a links[col], href: links[col]
+ end
+ else
+ _td links[col], class: cls
+ end
+
_td do
if cls == 'label-warning'
_ '(Expected to match the regular expression: '
@@ -153,7 +161,14 @@ _html do
_td do
_a links['display_name'], href: links['uri']
end
- _td links[col]
+
+ if links[col] =~ /^https?:/
+ _td do
+ _a links[col], href: links[col]
+ end
+ else
+ _td links[col]
+ end
end
end
end
--
To stop receiving notification emails like this one, please contact
"commits@whimsical.apache.org" <co...@whimsical.apache.org>.