Commit b74745f55636877c4c999730d632fe9896f7d37f
Clean code
Jacob Karlsson committed on 7/7/2018, 11:04:43 AMParent: d210926c8b6638ed7f9b6506fce01d51e9810aec
Files changed
render.js | changed |
render.js | ||
---|---|---|
@@ -532,15 +532,14 @@ | ||
532 | 532 … | else return renderDefault(c); |
533 | 533 … | } |
534 | 534 … | |
535 | 535 … | function renderGathering(opts, id, c) { |
536 … | + const title = h('h2', c.about.title) | |
537 … | + const time = h('h3', new Date(c.about.startDateTime.epoch).toUTCString()) | |
538 … | + const image = h('p', h('img', { src: opts.img_base + c.about.image })) | |
539 … | + const attending = h('h3.attending', c.numberAttending + ' attending') | |
536 | 540 … | const desc = h('div') |
537 | 541 … | desc.innerHTML = marked(c.about.description, opts.marked) |
538 | - const image = h('p', h('img', { src: opts.img_base + c.about.image })) | |
539 | - const attending = h('h3.attending', c.numberAttending + ' attending') | |
540 | - const title = h('h2', c.about.title) | |
541 | - const time = h('h3', new Date(c.about.startDateTime.epoch).toUTCString()) | |
542 | - console.log('c', c) | |
543 | 542 … | return h('section', |
544 | 543 … | [title, |
545 | 544 … | time, |
546 | 545 … | image, |
Built with git-ssb-web