git ssb

0+

Dominic / yap-gatherings



Commit c10d83fd944362efc0d54d087976db89b74d48bc

tidy

Dominic Tarr committed on 5/22/2019, 12:26:22 PM
Parent: 37d41ff61b662f01ec14293463dbe5afff14adf0

Files changed

render.jschanged
render.jsView
@@ -3,18 +3,20 @@
33 gathering.value.attendee.forEach(function (attendee) {
44 if(attendee.link) attending[attendee.link] = true
55 if(attendee.remove) delete attending[attendee.link]
66 })
7 + var gth = gathering.value
8 + var epoch = gth.startDateTime && gth.startDateTime.epoch
9 + var tz = epoch && epoch.tz
710 return ['div.Gathering',
811 apply('avatar', {id: gathering.creator, name: true, image: true}),' ',
9- ['label', 'created at: ', new Date(gathering.created)],
1012 ['h1',
1113 ['a',
12- {href: '/gathering?id='+encodeURIComponent(gathering.root)},
13- gathering.value.title
14 + {href: apply.toUrl('gatherings/event', {id:gathering.root})},
15 + gth.title
1416 ]
1517 ],
16- ['label', new Date(gathering.value.startDateTime.epoch).toString()],
18 + ['h2', {title: tz}, new Date(epoch).toString()],
1719 ['p', gathering.value.description],
1820 gathering.value.image
1921 ? ['img', {href: 'http://localhost:8989/blobs/get/'+encodeURIComponent(gathering.value.image.link)}]
2022 : '',
@@ -26,5 +28,4 @@
2628 ]
2729 ]
2830 }
2931
30-

Built with git-ssb-web