Commit 9a82fc00900ae8b7fed490771efcc1ab6c2bd8b1
render timestamps
Ev Bogue committed on 3/13/2019, 10:28:12 PMParent: 8153d042fa6ff17e4b0802cb01b297429c6e5ec4
Files changed
tools.js | changed |
tools.js | ||
---|---|---|
@@ -223,11 +223,14 @@ | ||
223 | 223 … | return mute |
224 | 224 … | } |
225 | 225 … | } |
226 | 226 … | |
227 | - | |
228 | 227 … | 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)))) | |
230 | 233 … | return timestamp |
231 | 234 … | } |
232 | 235 … | |
233 | 236 … | module.exports.star = function (msg) { |
Built with git-ssb-web