aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-10-28 14:51:21 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-10-28 14:51:21 -1000
commitf64dd61212b582c8f8a60714955e568ee7a6c0fe (patch)
tree735da4a4bdd59a14c6db2d0cb8911ad5d7124cb6
parentb84889d4ebd8e09091f8296699350a507a6080b4 (diff)
downloadpatchfoo-f64dd61212b582c8f8a60714955e568ee7a6c0fe.tar.gz
patchfoo-f64dd61212b582c8f8a60714955e568ee7a6c0fe.zip
Render branch property of about messages
-rw-r--r--lib/render-msg.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index 90fa5a0..56db7d9 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -535,6 +535,7 @@ function dateTime(d) {
var knownAboutProps = {
type: true,
root: true,
+ branch: true,
about: true,
attendee: true,
about: true,
@@ -614,8 +615,11 @@ RenderMsg.prototype.about = function (cb) {
this.wrap([
this.c.root ? h('div',
- h('small', '> ', this.link1(this.c.root, done()))
+ h('small', '→ ', this.link1(this.c.root, done()))
) : '',
+ u.toArray(this.c.branch).map(function (id) {
+ return h('div', h('small', '  ↳', this.link1(id, done())))
+ }.bind(this)),
isSelf ? 'self-describes as ' : [
this.c.review ? 'reviews' : 'describes', ' ',
!this.c.about ? ''