diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-11-18 18:40:38 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-11-18 18:40:38 -1000 |
commit | 3ad7cdec4ec8b4fa393caa8e3d5f0ff7351d9379 (patch) | |
tree | 60132efe24273f609e070bd29220f39448857ae3 /lib | |
parent | ea4dd667048524c4d93173ec63443dcd060ccf87 (diff) | |
download | patchfoo-3ad7cdec4ec8b4fa393caa8e3d5f0ff7351d9379.tar.gz patchfoo-3ad7cdec4ec8b4fa393caa8e3d5f0ff7351d9379.zip |
Render tag messages on one line
as requested in %d/P//6yh20miDPGyhsksEuvCjuxolC2lJxUU+1UTWeQ=.sha256
Diffstat (limited to 'lib')
-rw-r--r-- | lib/render-msg.js | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js index 857c2d5..dd35b06 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -1967,19 +1967,13 @@ RenderMsg.prototype.tag = function (cb) { if (self.c.message || self.c.root) { self.link(self.c.root, done()) self.link(self.c.message, done()) - self.links(self.c.branch, done()) - done(function (err, rootLink, msgLink, branchLinks) { + done(function (err, rootLink, msgLink) { if (err) return self.wrap(u.renderError(err), cb) - return self.wrap(h('div', - branchLinks.map(function (a, i) { - return h('div', h('small', h('span.symbol', ' ↳'), ' ', a)) - }), - h('p', - self.c.tagged ? 'tagged ' : 'untagged ', - msgLink, - rootLink ? [' as ', rootLink] : '' - ), - ), cb) + return self.wrapMini([ + self.c.tagged ? 'tagged ' : 'untagged ', + msgLink, + rootLink ? [' as ', rootLink] : '' + ], cb) }) } else { self.wrapMini('tag', cb) |