Commit c10d83fd944362efc0d54d087976db89b74d48bc
tidy
Dominic Tarr committed on 5/22/2019, 12:26:22 PMParent: 37d41ff61b662f01ec14293463dbe5afff14adf0
Files changed
render.js | changed |
render.js | ||
---|---|---|
@@ -3,18 +3,20 @@ | ||
3 | 3 … | gathering.value.attendee.forEach(function (attendee) { |
4 | 4 … | if(attendee.link) attending[attendee.link] = true |
5 | 5 … | if(attendee.remove) delete attending[attendee.link] |
6 | 6 … | }) |
7 … | + var gth = gathering.value | |
8 … | + var epoch = gth.startDateTime && gth.startDateTime.epoch | |
9 … | + var tz = epoch && epoch.tz | |
7 | 10 … | return ['div.Gathering', |
8 | 11 … | apply('avatar', {id: gathering.creator, name: true, image: true}),' ', |
9 | - ['label', 'created at: ', new Date(gathering.created)], | |
10 | 12 … | ['h1', |
11 | 13 … | ['a', |
12 | - {href: '/gathering?id='+encodeURIComponent(gathering.root)}, | |
13 | - gathering.value.title | |
14 … | + {href: apply.toUrl('gatherings/event', {id:gathering.root})}, | |
15 … | + gth.title | |
14 | 16 … | ] |
15 | 17 … | ], |
16 | - ['label', new Date(gathering.value.startDateTime.epoch).toString()], | |
18 … | + ['h2', {title: tz}, new Date(epoch).toString()], | |
17 | 19 … | ['p', gathering.value.description], |
18 | 20 … | gathering.value.image |
19 | 21 … | ? ['img', {href: 'http://localhost:8989/blobs/get/'+encodeURIComponent(gathering.value.image.link)}] |
20 | 22 … | : '', |
@@ -26,5 +28,4 @@ | ||
26 | 28 … | ] |
27 | 29 … | ] |
28 | 30 … | } |
29 | 31 … | |
30 | - |
Built with git-ssb-web