From 3271c5339d3d77b0379c3633caddbe7a7dd36cef Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Tue, 22 Nov 2022 10:19:07 -0500 Subject: hyperlist tweaks --- emacsconf-pad.el | 111 +++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 70 insertions(+), 41 deletions(-) diff --git a/emacsconf-pad.el b/emacsconf-pad.el index 4e009c0..7542689 100644 --- a/emacsconf-pad.el +++ b/emacsconf-pad.el @@ -319,14 +319,16 @@ ${next-talk-list} (defun emacsconf-pad-format-shift-hyperlist (shift info) (let* ((prefixed (list - :start (plist-get shift :start) - :end (plist-get shift :end) - :host (emacsconf-surround "HOST-" (plist-get shift :host) "" "HOST") - :stream (emacsconf-surround "STREAM-" (plist-get shift :streamer) "" "STREAM") - :irc-volunteer (emacsconf-surround "IRC-" (plist-get shift :irc) "" "IRC") - :checkin (emacsconf-surround "CHECKIN-" (plist-get shift :checkin) "" "CHECKIN") - :pad (emacsconf-surround "PAD-" (plist-get shift :pad) "" "PAD") - :coord (emacsconf-surround "COORD-" (plist-get shift :coord) "" "COORD"))) + :start (plist-get shift :start) + :end (plist-get shift :end) + :year emacsconf-year + :host (emacsconf-surround "HOST-" (plist-get shift :host) "" "HOST") + :stream (emacsconf-surround "STREAM-" (plist-get shift :streamer) "" "STREAM") + :irc-volunteer (emacsconf-surround "IRC-" (plist-get shift :irc) "" "IRC") + :track-id (plist-get (emacsconf-get-track (plist-get shift :track)) :id) + :checkin (emacsconf-surround "CHECKIN-" (plist-get shift :checkin) "" "CHECKIN") + :pad (emacsconf-surround "PAD-" (plist-get shift :pad) "" "PAD") + :coord (emacsconf-surround "COORD-" (plist-get shift :coord) "" "COORD"))) (shift-talks (mapcar (lambda (o) (append prefixed o)) (seq-filter @@ -334,9 +336,14 @@ ${next-talk-list} (emacsconf-filter-talks-by-time (plist-get shift :start) (plist-get shift :end) info))))) (concat (emacsconf-replace-plist-in-string - shift + (append (list :index (concat emacsconf-pad-base + "private_" + emacsconf-private-pad-prefix + "_" emacsconf-id)) + shift) (concat - "

" (plist-get shift :id) "

" + "Back to ${index}
In case of ...: https://emacsconf.org/2022/organizers-notebook/#exceptions
" + "

" (plist-get shift :id) "

" "

Host: ${host}, Streamer: ${streamer}, IRC: ${irc}, Pad: ${pad}, Check-in: ${checkin}, Coord: ${coord}

")) (emacsconf-replace-plist-in-string prefixed @@ -344,11 +351,10 @@ ${next-talk-list} " Setup " - "