aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-04-14 17:08:53 -0700
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-04-14 17:08:53 -0700
commit7e028f14b513d58fa62cd82d8a0cbb5c19376aaf (patch)
tree74c686e0c29b63d9573cd6ff775b6886914bd64e
parent34bf49e52db38a53d14c19c65d775f52da0c1329 (diff)
downloadpatchfoo-7e028f14b513d58fa62cd82d8a0cbb5c19376aaf.tar.gz
patchfoo-7e028f14b513d58fa62cd82d8a0cbb5c19376aaf.zip
Linkify fallback message type
-rw-r--r--lib/render-msg.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index faf5a84..711a759 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -502,6 +502,12 @@ RenderMsg.prototype.valueTable = function (val, cb) {
innerHTML: self.render.markdown(val.text, val.mentions)
}))
)
+ } else if (key === 'type') {
+ var type = val.type
+ return h('tr',
+ h('td', h('strong', 'type')),
+ h('td', h('a', {href: self.toUrl('/type/' + type)}, type))
+ )
}
return h('tr',
h('td', h('strong', key)),