whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curc...@apache.org
Subject [whimsy] branch master updated: Simplistic display of historical ApacheCon data
Date Sun, 23 Apr 2017 19:32:59 GMT
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  79282dc   Simplistic display of historical ApacheCon data
79282dc is described below

commit 79282dcfee4917ee9e3c49ac495f10036d9e2536
Author: Shane Curcuru <asf@shanecurcuru.org>
AuthorDate: Sun Apr 23 15:32:54 2017 -0400

    Simplistic display of historical ApacheCon data
    
    Sam: I’m having debugging block and can’t figure out why 1) the ‘Name’
    doesn’t appear in the link, and 2) why the glyphicons aren’t displaying
    locally. Thanks.
---
 www/test/apachecon.cgi | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/www/test/apachecon.cgi b/www/test/apachecon.cgi
new file mode 100755
index 0000000..fca5d4e
--- /dev/null
+++ b/www/test/apachecon.cgi
@@ -0,0 +1,51 @@
+#!/usr/bin/env ruby
+$LOAD_PATH.unshift File.realpath(File.expand_path('../../../lib', __FILE__))
+require 'csv'
+require 'json'
+require 'whimsy/asf'
+require 'wunderbar'
+require 'wunderbar/bootstrap'
+
+PAGETITLE = 'ApacheCon Historical Listing'
+ifields = {
+  'SessionList'	=> 'glyphicon_th_list',
+  'SlideArchive' => 'glyphicon_file',
+  'VideoArchive' => 'glyphicon_facetime_video',
+  'AudioArchive' => 'glyphicon_headphones',
+  'PhotoAlbum' => 'glyphicon_camera'
+}
+
+_html do
+  _body? do
+    _whimsy_header PAGETITLE
+    ac_dir = ASF::SVN['private/foundation/ApacheCon']
+    csv = CSV.read("#{ac_dir}/apacheconhistory.csv", headers:true)
+    _whimsy_content do
+      _p 'Past ApacheCons include:'
+      _ul do
+        csv.each do |r|
+          _li do
+            _span.text_primary do
+              _a r['Name'], href: r['Link']
+            end
+            _ ", held in #{r['Location']}. "
+            _br
+            ifields.each do |fn, g|
+              if r[fn] then
+                _a! href: r[fn] do
+                  _span!.glyphicon class: "#{g}"
+                  _! ' ' + fn
+                end       
+              end
+            end
+          end
+        end        
+      end
+    end
+    
+    _whimsy_footer({
+      "https://www.apache.org/foundation/marks/resources" => "Trademark Site Map",
+      "https://www.apache.org/foundation/marks/list/" => "Official Apache Trademark List"
+      })
+  end
+end

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

Mime
View raw message