Skip to content

Commit

Permalink
Add link to file drop to templates
Browse files Browse the repository at this point in the history
  • Loading branch information
pbock committed Dec 26, 2016
1 parent 10002c6 commit f81f495
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -55,7 +55,8 @@ module.exports = function Template(options) {
[${language}] <strong>${start}</strong> +${duration}, ${room}<br>
<strong>${title}</strong>${type}<br>
${speakers}<br>
https://fahrplan.events.ccc.de/congress/2016/Fahrplan/events/${id}.html<br>
Fahrplan: https://fahrplan.events.ccc.de/congress/2016/Fahrplan/events/${id}.html<br>
Slides (if available): https://speakers.c3lingo.org/talks/${guid}/<br>
${targetLanguages}<br>
<br>
<br>
Expand Down

0 comments on commit f81f495

Please sign in to comment.