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: Proposed Apache ComDev available talks listing
Date Wed, 24 May 2017 15:23:04 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  26d0506   Proposed Apache ComDev available talks listing
26d0506 is described below

commit 26d050615d270b357a834e1c11b5fbd971db04ad
Author: Shane Curcuru <asf@shanecurcuru.org>
AuthorDate: Wed May 24 11:22:46 2017 -0400

    Proposed Apache ComDev available talks listing
---
 www/events/talks.cgi | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 101 insertions(+)

diff --git a/www/events/talks.cgi b/www/events/talks.cgi
new file mode 100755
index 0000000..81087f2
--- /dev/null
+++ b/www/events/talks.cgi
@@ -0,0 +1,101 @@
+#!/usr/bin/env ruby
+PAGETITLE = 'Apache Related Talks Listing' # Wvisible:events
+
+$LOAD_PATH.unshift File.realpath(File.expand_path('../../../lib', __FILE__))
+require 'json'
+require 'whimsy/asf'
+require 'wunderbar'
+require 'wunderbar/bootstrap'
+require 'wunderbar/jquery'
+require "../../tools/comdevtalks.rb"
+
+talks = {}
+submitters = {}
+
+def _talk(talk, submitters, parent, n)
+  _div.panel.panel_default  id: talk[0] do
+    talk = talk[1] # originally an array of [Apache_Way_2017, {} ]
+    _div.panel_heading role: "tab", id: "urh#{n}" do
+      _h4.panel_title do
+        _a.collapsed role: "button", data_toggle: "collapse",  aria_expanded: "false", data_parent:
"##{parent}", href: "#urc#{n}", aria_controls: "urc#{n}" do
+          _ talk['title']
+        end
+        _br
+        _span.small talk['teaser']
+      end
+    end
+    _div.panel_collapse.collapse id: "urc#{n}", role: "tabpanel", aria_labelledby: "urh#{n}"
do
+      # TODO fix to display both submitter and/or speaker(s)
+      submitter = submitters[talk['submitter']]
+      submitter = talk['submitter'] unless submitter
+      _table.table.table_condensed do
+        _thead do
+          _tr do
+            _th do
+              _ "#{submitter['name']}" #TODO lookup name, bio
+            end
+          end
+        end
+        _tbody do
+          _tr do
+            _td do
+              _ talk['abstract'] # TODO allow markdown styles
+            end
+          end
+          if talk['slides']
+            _tr do
+              _td do
+                _a! href: "#{talk['slides']}" do
+                  _span!.glyphicon class: 'glyphicon_file'
+                  _! ' Session Slides'
+                end
+              end
+            end
+          end
+          if talk['video']
+            _tr do
+              _td do
+                _a! href: "#{talk['video']}" do
+                  _span!.glyphicon class: 'glyphicon_facetime_video'
+                  _! ' Watch The Video'
+                end
+              end
+            end
+          end
+          _tr do
+            _td do
+              _h4 "Speaker Bio"
+              _ "#{submitter['bio']}"
+            end
+          end
+        end
+      end
+    end
+  end
+end
+
+_html do
+  _body? do
+    _whimsy_header PAGETITLE
+    talks, submitters = get_talks_submitters()
+    _whimsy_content do
+      _p do
+        _ 'DRAFT listing of curated Apache non-technical talks - about the Apache Way, licenses,
brands, governance, and ASF history.'
+        _a 'See the source data.', href: COMDEVTALKS
+      end 
+      
+      parent = "talkz" # TODO: split up by category
+      _div.panel_group id: parent, role: "tablist", aria_multiselectable: "true" do
+        talks.each_with_index do |talk, num|
+          _talk(talk, submitters, parent, num)
+        end
+      end
+    end
+    
+    _whimsy_footer({
+      "https://community.apache.org/" => "Apache Community Development",
+      "https://community.apache.org/speakers/" => "Apache Speaker Resources",
+      "https://apachecon.com/" => "ApacheCon Conferences"
+      })
+    end
+  end

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

Mime
View raw message