git ssb

0+

ev / 0qc



Commit 9a82fc00900ae8b7fed490771efcc1ab6c2bd8b1

render timestamps

Ev Bogue committed on 3/13/2019, 10:28:12 PM
Parent: 8153d042fa6ff17e4b0802cb01b297429c6e5ec4

Files changed

tools.jschanged
tools.jsView
@@ -223,11 +223,14 @@
223223 return mute
224224 }
225225 }
226226
227-
228227 module.exports.timestamp = function (msg, edited) {
229- var timestamp = h('span.right', h('a', {href: '#' + msg.key}, human(new Date(msg.value.timestamp))))
228 + var timestamp
229 + if (edited)
230 + timestamp = h('span.timestmap.right', 'Edited by: ', h('a', {href: '#' + msg.value.author}, h('span.avatar--small', avatar.cachedImage(msg.value.author))), h('a', {href: '#' + msg.key}, human(new Date(msg.value.timestamp))))
231 + else
232 + timestamp = h('span.timestamp.right', h('a', {href: '#' + msg.key}, human(new Date(msg.value.timestamp))))
230233 return timestamp
231234 }
232235
233236 module.exports.star = function (msg) {

Built with git-ssb-web