whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curc...@apache.org
Subject [whimsy] branch styleallthethings updated: Use new _whimsy_body theme
Date Thu, 25 May 2017 16:13:28 GMT
This is an automated email from the ASF dual-hosted git repository.

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

The following commit(s) were added to refs/heads/styleallthethings by this push:
       new  2d12b95   Use new _whimsy_body theme
2d12b95 is described below

commit 2d12b95358e6a1fc8a50b7f362775e2e5c038eb8
Author: Shane Curcuru <asf@shanecurcuru.org>
AuthorDate: Thu May 25 12:13:24 2017 -0400

    Use new _whimsy_body theme
---
 www/test/dataflow.cgi | 109 +++++++++++++++++++++++---------------------------
 1 file changed, 51 insertions(+), 58 deletions(-)

diff --git a/www/test/dataflow.cgi b/www/test/dataflow.cgi
index b64b523..35f8d60 100755
--- a/www/test/dataflow.cgi
+++ b/www/test/dataflow.cgi
@@ -12,66 +12,60 @@ GITWHIMSY = 'https://github.com/apache/whimsy/blob/master'
 
 _html do
   _body? do
-    _whimsy_header PAGETITLE
     deplist = JSON.parse(File.read(DATAFLOWDATA)) 
-    _whimsy_content do
-      _div.row do
-        _div.col_sm_11 do
-          _whimsy_panel 'What Data Comes From Where' do
-            _p %{ Whimsy tools consume and produce a variety of data files 
-              about PMCs and the ASF as a whole.  This non-comprehensive 
-              page explains which tools generate what intermediate data, 
-              and where the canonical underlying data sources are (many
-              of which are privately stored). .json files generated in 
-              /public are consumed by many other websites.
-            }
-            _p do 
-              _ %{ Whimsy has a number of cron jobs - typically hourly - 
-                that periodically regenerate the /public directory, but 
-                only when the underlying data source has changed.
-                See the 
-              }
-              _a 'server docs for more info.', href: 'https://github.com/apache/whimsy/blob/master/DEPLOYMENT.md'
-            end
-          end
+    _whimsy_body title: PAGETITLE, related: {
+      "https://projects.apache.org/" => "Apache Projects Listing",
+      "https://home.apache.org/" => "Apache Committer Phonebook",
+      "https://community.apache.org/" => "Apache Community Development"
+    } do
+      _whimsy_panel 'What Data Comes From Where' do
+        _p %{ Whimsy tools consume and produce a variety of data files 
+          about PMCs and the ASF as a whole.  This non-comprehensive 
+          page explains which tools generate what intermediate data, 
+          and where the canonical underlying data sources are (many
+          of which are privately stored). .json files generated in 
+          /public are consumed by many other websites.
+        }
+        _p do 
+          _ %{ Whimsy has a number of cron jobs - typically hourly - 
+            that periodically regenerate the /public directory, but 
+            only when the underlying data source has changed.
+            See the 
+          }
+          _a 'server docs for more info.', href: 'https://github.com/apache/whimsy/blob/master/DEPLOYMENT.md'
         end
       end
-      
-      _div.row do
-        _div.col_sm_11 do
-          _ul.list_group do
-            deplist.each do |dep, info|
-              _li.list_group_item do
-                _a '', name: dep.gsub(/[#%\[\]\{\}\\"<>]/, '')
-                if dep =~ /http/i then
-                  _code! do
-                    _a! File.basename(dep), href: dep
-                  end
-                elsif dep =~ %r{\A/} then
-                  _code! do
-                    _a! dep, href: "#{GITWHIMSY}#{dep}"
-                  end              
-                else
-                  _code! dep
-                end
-                _ " #{info['description']}"
-                _br
-                if info['maintainer'] =~ %r{/} then
-                  _span.text_muted 'Maintained by: Whimsy PMC using script: '
-                  _a.text_muted "#{info['maintainer']}", href: "#{GITWHIMSY}#{info['maintainer']}"
-                else
-                  _span.text_muted 'Maintained by role/PMC: '
-                  _a.text_muted "#{info['maintainer']}", href: "https://whimsy.apache.org/roster/orgchart/#{info['maintainer']}"
-                end
-                _br
-                if info.key?('sources') then
-                  _span 'Derived from:'
-                  _ul do
-                    info['sources'].each do |src|
-                      _li do 
-                        _a "#{src}", href: "##{src.gsub(/[#%\[\]\{\}\\"<>]/, '')}"
-                      end
-                    end
+      _ul.list_group do
+        deplist.each do |dep, info|
+          _li.list_group_item do
+            _a '', name: dep.gsub(/[#%\[\]\{\}\\"<>]/, '')
+            if dep =~ /http/i then
+              _code! do
+                _a! File.basename(dep), href: dep
+              end
+            elsif dep =~ %r{\A/} then
+              _code! do
+                _a! dep, href: "#{GITWHIMSY}#{dep}"
+              end              
+            else
+              _code! dep
+            end
+            _ " #{info['description']}"
+            _br
+            if info['maintainer'] =~ %r{/} then
+              _span.text_muted 'Maintained by: Whimsy PMC using script: '
+              _a.text_muted "#{info['maintainer']}", href: "#{GITWHIMSY}#{info['maintainer']}"
+            else
+              _span.text_muted 'Maintained by role/PMC: '
+              _a.text_muted "#{info['maintainer']}", href: "https://whimsy.apache.org/roster/orgchart/#{info['maintainer']}"
+            end
+            _br
+            if info.key?('sources') then
+              _span 'Derived from:'
+              _ul do
+                info['sources'].each do |src|
+                  _li do 
+                    _a "#{src}", href: "##{src.gsub(/[#%\[\]\{\}\\"<>]/, '')}"
                   end
                 end
               end
@@ -79,7 +73,6 @@ _html do
           end
         end
       end
-      
       _p do 
         _ "The #{DATAFLOWDATA} file is currently a manually maintained file where the hash
key identifies a file: "
         _ul do

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

Mime
View raw message