Changes for integration with drupal program and speakerlist generation
authorRuben Rodriguez <ruben@fsf.org>
Thu, 13 Feb 2020 16:33:10 +0000 (11:33 -0500)
committerRuben Rodriguez <ruben@fsf.org>
Thu, 13 Feb 2020 16:33:10 +0000 (11:33 -0500)
2020/Makefile
2020/assets/css/custom.css
2020/program/index.html [changed mode: 0644->0755]
2020/speakers/index.html

index 4f28977ad441b7aed188654c5fce067ab23cc189..9979c15d8f8fadac90328ac4c1259175f4780275 100644 (file)
@@ -1,4 +1,4 @@
-#    Copyright (C) 2016 Free Software Foundation
+#    Copyright (C) 2016-2020 Free Software Foundation
 #
 #   This program is free software: you can redistribute it and/or
 #   modify it under the terms of the GNU General Public License as
 #   along with this program.  If not, see
 #   <http://www.gnu.org/licenses/>.
 
-LP_YEAR = 2019
-
-SPEAKERS_TEMPLATE = assets/templates/lp-speakers.jinja2
-SPEAKERS_MD = /home/owner/brains/campaigns/libreplanet/2019/program/bios-for-site.mdwn
-SPEAKERS_HTML = program/generated-bios.html
-
-SESSIONS_TEMPLATE = assets/templates/lp-schedule.jinja2
-SESSIONS_MD = /home/owner/brains/campaigns/libreplanet/2019/program/sessions-for-site.mdwn
-SESSIONS_HTML = program/generated-sessions.html
-
-
 all:
        @echo "Give me something to make."
 # for f in $(find -name '*.mdwn' -type f); do python -m markdown $f > ${f%mdwn}html; done
@@ -36,25 +25,15 @@ wikipages:
                fi \
        done
 
-speakers: $(SPEAKERS_HTML)
-
-
-sessions: $(SESSIONS_HTML)
+speakers: 
+       curl -s https://my.fsf.org/lp-talk/30| sed -n 's=/lp-schedule-2020=/2020/program/=g; s/fa fa-/glyphicon glyphicon-/g; /pagestart/s/<\/div>//; /pagestart/,/pageend/p; ' > includes/generated-bios.html
 
+sessions: 
+       curl -s https://my.fsf.org/lp-schedule-2020| sed -n 's=/lp-talk/30=/2020/speakers=g; s/fa fa-/glyphicon glyphicon-/g; /pagestart/s/<\/div>//; /pagestart/,/pageend/p; ' > includes/generated-sessions.html
 
 clean:
-       rm  -f $(SPEAKERS_HTML) $(SESSIONS_HTML)
-
-
-both: $(SPEAKERS_HTML) $(SESSIONS_HTML)
-
-
-$(SPEAKERS_HTML): $(SPEAKERS_MD)
-       @lps_gen -sp $(SPEAKERS_TEMPLATE) $< > $@
-
-
-$(SESSIONS_HTML): $(SESSIONS_MD)
-       @lps_gen -s --ical $(LP_YEAR) $(SESSIONS_TEMPLATE) $< > $@
+       rm  -f includes/generated-sessions.html includes/generated-bios.html
 
+both: sessions speakers
 
 .PHONY:  all speakers sessions both clean
index a888ec6bf4e6db24ce1c90eba04e0e20fe66de40..f728fad45997138f5ed0066305a06eaaa91355ef 100644 (file)
@@ -909,3 +909,145 @@ body {
     width:100%;
     height:450px;
 }
+
+/* generated schedule and speakers list */
+
+.lptrack{
+padding:0 4px 0 4px;
+border-radius: 5px
+}
+
+#speakerlist .glyphicon-road{
+margin-top:10px
+}
+
+.talkblock .glyphicon-home{
+margin-left:10px
+}
+
+
+.lptrack1{background-color:#3fcc91;} /*licensing*/
+.lptrack2{background-color:#bcc2c8;} /*LP special*/
+.lptrack3{background-color:#e687c1;} /*community*/
+.lptrack4{background-color:#ff9556;} /*social context*/
+.lptrack5{background-color:#ff7979;} /*government*/
+.lptrack6{background-color:orange;}
+.lptrack7{background-color:#00d6f9;} /*workshop*/
+.lptrack8{background-color:green;}
+.lptrack9{background-color:#91c1ff;} /*FS in practice*/
+.lptrack10{background-color:#ffdd28;} /*exploring fs concepts*/
+
+.view-id-lp_schedule_2020 .view-grouping-header{
+  font-size: 25px;
+  font-weight: bold;
+  border-top:4px solid #ccc;
+  padding-top:20px!important;
+}
+
+.view-id-lp_schedule_2020 .col-1{
+  width:33%
+}
+.view-id-lp_schedule_2020 .col-2{
+  width:33%;
+}
+.speakerpic{
+border-radius: 10px
+
+}
+
+.talkblock{
+  clear: both;
+  float:right;
+  display: block;
+  width:55%;
+  text-align: justify;
+  margin-bottom:40px;
+  background-color:#eee;
+  padding:4% 5% 4% 5%;
+  border-radius: 20px;
+
+}
+
+.speakerblock{
+  float:left;
+  display: block;
+  width:40%;
+  border-right:10px dotted #eee;
+  padding-right:3%;
+  text-align: justify;
+  margin-bottom:40px;
+}
+
+.speakerheader {
+  text-align: right
+}
+
+.view-content hr{
+ border:3px solid orange;
+  border-radius: 3px;
+clear:both
+}
+
+.speakerblock h2{
+  text-align: right;
+}
+
+.speakerblock .speakerpic{
+  width: 60%;
+  display:inline-block;
+  margin:0 0% 5% 0%;
+}
+
+.speakerblock h2{
+  padding-bottom: 0.3em
+}
+
+.talkblock h2{
+  padding-bottom: 0.3em;
+  font-size:20px;
+  text-align: left;
+}
+
+.talkblock .abstract{
+  margin-top:20px
+}
+
+#program table td  {
+  border:1px solid #204a87;
+  width:33%;
+  vertical-align:top;
+  padding:7px 10px 5px 10px;
+  background-color: #f5f5f5;
+}
+
+#program table .views-field-value{
+  font-weight: bold;
+  color: #f57900
+}
+
+.view-grouping-header, #speakerlist .view-content h3{
+  font-size: x-large;
+  font-weight: bold;
+  display:block;
+  border-bottom:3px solid #f57900;
+  margin:20px 0 20px 0;
+  padding:5px 0 5px 15px;
+  background-color: #204a87;
+  color: white
+
+}
+
+.lpcalendarlink {
+color:#f57900;
+border:none;
+}
+.talkblockheader{
+  font-weight: 500
+}
+
+#program h3, #speakerlist h3{
+clear:both
+}
+
+
+/* END generated schedule and speakers list */
old mode 100644 (file)
new mode 100755 (executable)
index 7eeb38c..5c79a2a
@@ -18,8 +18,8 @@ Contents
 </h2>
 </div>
 <div class="panel-body">
-<p><a href="#day-1-program">Saturday sessions</a></p>
-<p><a href="#day-2-program">Sunday sessions</a></p>
+<p><a href="#schedule-Saturday">Saturday sessions</a></p>
+<p><a href="#schedule-Sunday">Sunday sessions</a></p>
 </div>
 </div>
 
@@ -27,11 +27,12 @@ Contents
 
 <!--<a href="https://media.libreplanet.org/tag/libreplanet-2020-video/"><button class="btn btn-default btn-xl" style="width: 100%; font-size: 200%;">
 Watch session videos on our GNU MediaGoblin instance!</button></a><br><br><br>-->
-<div class="program-session-details-toggle-all">
+<!--div class="program-session-details-toggle-all">
     <button class="btn btn-default btn-xs">Expand all</button>
-</div>
+</div-->
+<div id="program">
 <!--#include virtual="/2020/includes/generated-sessions.html"-->
-
+</div>
 
 <!--#include virtual="/2020/includes/footer.html"-->
 <!--#include virtual="/2020/includes/common_js.html"-->
index 8302053b130c0f97497496b0523accbbf554fa40..90843d0fc49860ca6f66709767bf3443ac267c2f 100755 (executable)
@@ -5,9 +5,10 @@
 <!--#include virtual="/2020/includes/banner.html"-->
 <!--#include virtual="/2020/includes/sidebar.html"-->
 
-<h1>Program Speakers</h1>
-
+<h1>Program</h1>
+<div id="speakerlist">
        <!--#include virtual="/2020/includes/generated-bios.html"-->
+</div>
        <!--#include virtual="/2020/includes/footer.html"-->
        <!--#include virtual="/2020/includes/common_js.html"-->
        <!--#include virtual="/2020/includes/speakers_js.html"-->