git ssb

9+

cel / ssb-viewer



Commit b74745f55636877c4c999730d632fe9896f7d37f

Clean code

Jacob Karlsson committed on 7/7/2018, 11:04:43 AM
Parent: d210926c8b6638ed7f9b6506fce01d51e9810aec

Files changed

render.jschanged
render.jsView
@@ -532,15 +532,14 @@
532532 else return renderDefault(c);
533533 }
534534
535535 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')
536540 const desc = h('div')
537541 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)
543542 return h('section',
544543 [title,
545544 time,
546545 image,

Built with git-ssb-web