From 3098fc79f14cd7f57d5fb5aae50bccb1250fa6c0 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Tue, 5 Dec 2023 16:12:36 -0500 Subject: tweak resources displayed --- emacsconf-publish.el | 55 +++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 42 insertions(+), 13 deletions(-) diff --git a/emacsconf-publish.el b/emacsconf-publish.el index bbd0920..d4d4dd6 100644 --- a/emacsconf-publish.el +++ b/emacsconf-publish.el @@ -835,10 +835,14 @@ Back to the [[talks]] \n" (if prev-talk (format "Previous by %s: %s \n" label prev-talk) "") (if next-talk (format "Next by %s: %s \n" label next-talk) "") (if (plist-get o :track) ; tagging doesn't work here because ikiwiki will list the nav page - (format "Track: %s - Watch \n" - (plist-get o :track) - (plist-get o :track) - (plist-get o :watch-url)) + (if (member emacsconf-publishing-phase '(schedule conference)) + (format "Track: %s - Watch \n" + (plist-get o :track) + (plist-get o :track) + (plist-get o :watch-url)) + (format "Track: %s \n" + (plist-get o :track) + (plist-get o :track))) "") " "))))))) @@ -1169,11 +1173,18 @@ You can also get this schedule as iCalendar files: ${icals}. Importing that into (list :pad nil :channel nil - :resources (mapconcat (lambda (s) (concat "
  • " s "
  • ")) - (emacsconf-publish-link-file-formats-as-list - (append o - (list :base-url (format "%s%s/" emacsconf-media-base-url emacsconf-year)))) - "")))) + :resources + (concat + (emacsconf-surround "
  • Play recording from BigBlueButton
  • " "") + (mapconcat + (lambda (s) (concat "
  • " s "
  • ")) + (emacsconf-publish-link-file-formats-as-list + (append o + (list :base-url (format "%s%s/" emacsconf-media-base-url emacsconf-year)))) + "")) +))) (list :title (plist-get o :title) :url (concat "/" (plist-get o :url)) @@ -1484,7 +1495,6 @@ answers without needing to listen to everything again. You can see Open Etherpad" "") + (emacsconf-surround "
  • Open public Q&A
  • " "") + (emacsconf-surround "
  • Play recording from BigBlueButton
  • " ""))) o)) (if (or (emacsconf-talk-file o "--answers.webm") (emacsconf-talk-file o "--answers.opus")) @@ -1575,6 +1598,10 @@ ${include} (concat emacsconf-media-base-url (plist-get f :conf-year) "/") :track-base-url (format "/%s/captions/" (plist-get f :conf-year)) + :links + (emacsconf-surround "
  • Play recording from BigBlueButton
  • " "") :files (seq-remove (lambda (f) (string-match "--answers" f)) (emacsconf-publish-filter-public-files f files))) @@ -1665,7 +1692,9 @@ ${include} (format " (%sB)" (file-size-human-readable (file-attribute-size (file-attributes cache-file)))) "")))) (or (plist-get talk :files) - (emacsconf-publish-talk-files talk)))) + (if (plist-get talk :backstage) + (emacsconf-publish-talk-files talk) + (emacsconf-publish-filter-public-files talk))))) (defun emacsconf-publish-talks-json () "Return JSON format with a subset of talk information." -- cgit v1.2.3