aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-11-26 22:24:06 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-11-26 22:59:18 -1000
commit61de550271bb370ae1e93c29fc5fcece38087d9a (patch)
tree5af09a0655899e597b67c83516462f09d6c11004 /lib/render-msg.js
parent6c20007fa0ba140838c722bb7b06107d20902e51 (diff)
downloadpatchfoo-61de550271bb370ae1e93c29fc5fcece38087d9a.tar.gz
patchfoo-61de550271bb370ae1e93c29fc5fcece38087d9a.zip
Link to branches for mini messages
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index ca07dd8..c529b4f 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -150,18 +150,22 @@ RenderMsg.prototype.wrapMini = function (content, cb) {
}, htime(date)), ' ',
this.issues(done()),
content),
- h('td.msg-right', this.actions())
+ h('td.msg-right', this.actions(true))
))
done(cb)
}
-RenderMsg.prototype.actions = function () {
+RenderMsg.prototype.actions = function (mini) {
var lastMove
return this.msg.key ?
h('form', {method: 'post', action: ''},
this.msg.rel ? [this.msg.rel, ' '] : '',
this.opts.withGt && this.msg.timestamp ? [
h('a', {href: '?gt=' + this.msg.timestamp}, '↓'), ' '] : '',
+ mini ? u.toLinkArray(this.c.branch).map(function (link) {
+ return [h('a', {href: this.toUrl(link.link), title: link.link},
+ h('small.symbol', '↳')), ' ']
+ }.bind(this)) : '',
this.c.type === 'edit' ? [
h('a', {href: this.toUrl('/edit-diff/' + encodeURIComponent(this.msg.key)),
title: 'view post edit diff'}, 'diff'), ' '] : '',