aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-09 21:09:04 -0500
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-03-09 22:22:51 -0500
commite608ef26114c658168035e83b6b07351db8fe284 (patch)
tree938ef5c1b6238de78ac97015990f467c97122906 /lib
parentd92635223a233a1bc8d15e6b1d83e50fa74e5e32 (diff)
downloadpatchfoo-e608ef26114c658168035e83b6b07351db8fe284.tar.gz
patchfoo-e608ef26114c658168035e83b6b07351db8fe284.zip
Improve rendering issue updates
Diffstat (limited to 'lib')
-rw-r--r--lib/render-msg.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index b150522..017e8f6 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -106,8 +106,7 @@ RenderMsg.prototype.wrap = function (content, cb) {
}, htime(date)), ' ',
h('code', h('a.ssb-id',
{href: this.toUrl(this.msg.key)}, this.msg.key)),
- channel ? [' ', h('a', {href: this.toUrl(channel)}, channel)] : ''),
- this.issues(done())),
+ channel ? [' ', h('a', {href: this.toUrl(channel)}, channel)] : '')),
h('td.msg-right', this.msg.key ?
h('form', {method: 'post', action: '/vote'},
this.msg.rel ? [this.msg.rel, ' '] : '',
@@ -117,7 +116,9 @@ RenderMsg.prototype.wrap = function (content, cb) {
this.msg.rel ? [this.msg.rel, ' '] : ''
])
), h('tr',
- h('td.msg-content', {colspan: 2}, content)
+ h('td.msg-content', {colspan: 2},
+ this.issues(done()),
+ content)
)])
done(cb)
}
@@ -138,6 +139,7 @@ RenderMsg.prototype.wrapMini = function (content, cb) {
title: date.toLocaleString(),
href: this.msg.key ? this.toUrl(this.msg.key) : undefined
}, htime(date)), ' ',
+ this.issues(done()),
content),
h('td.msg-right', this.msg.key ?
h('form', {method: 'post', action: '/vote'},
@@ -446,15 +448,13 @@ RenderMsg.prototype.issues = function (cb) {
issue.label ? h('q', issue.label) : ''] : ''
if (issue.merged === true)
return h('div',
- 'merged ', self.link1(issue, done()),
- commit ? [' in ', commit] : '')
+ 'merged ', self.link1(issue, done()))
if (issue.open === false)
return h('div',
- 'closed ', self.link1(issue, done()),
- commit ? [' in ', commit] : '')
+ 'closed ', self.link1(issue, done()))
})
done(cb)
- return els
+ return els.length > 0 ? [els, h('br')] : ''
}
RenderMsg.prototype.repost = function (cb) {