From f81f4956a688ca3edc1fcde712edb31876e43266 Mon Sep 17 00:00:00 2001 From: Philipp Bock Date: Mon, 26 Dec 2016 20:13:35 +0100 Subject: [PATCH] Add link to file drop to templates --- lib/template.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/template.js b/lib/template.js index 96ba1e1..1d2af0b 100644 --- a/lib/template.js +++ b/lib/template.js @@ -39,14 +39,14 @@ module.exports = function Template(options) { // Level three a // Generates the listing for each individual event function eventTemplate(event) { - const { title, room, start, duration, id, language, sequentialNumber } = event; + const { title, room, start, duration, id, language, sequentialNumber, guid } = event; const speakers = event.persons.map(p => p.name).join(', '); const type = o.ignoreEventTypes.includes(event.type) ? '' : ` (${_.upperFirst(event.type)})`; const targetLanguages = ({ - en: '    → de ', - de: '    → en ', - })[language] || '    → '; + en: '→ de ', + de: '→ en ', + })[language] || '→ '; // Yes, this is awful HTML, but its only job is to be parsed by EtherPad, // so I won't even bother cleaning up the indentation. @@ -55,7 +55,8 @@ module.exports = function Template(options) { [${language}] ${start} +${duration}, ${room}
${title}${type}
${speakers}
- https://fahrplan.events.ccc.de/congress/2016/Fahrplan/events/${id}.html
+ Fahrplan: https://fahrplan.events.ccc.de/congress/2016/Fahrplan/events/${id}.html
+ Slides (if available): https://speakers.c3lingo.org/talks/${guid}/
${targetLanguages}