diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-04-14 17:08:53 -0700 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-04-14 17:08:53 -0700 |
commit | 7e028f14b513d58fa62cd82d8a0cbb5c19376aaf (patch) | |
tree | 74c686e0c29b63d9573cd6ff775b6886914bd64e /lib | |
parent | 34bf49e52db38a53d14c19c65d775f52da0c1329 (diff) | |
download | patchfoo-7e028f14b513d58fa62cd82d8a0cbb5c19376aaf.tar.gz patchfoo-7e028f14b513d58fa62cd82d8a0cbb5c19376aaf.zip |
Linkify fallback message type
Diffstat (limited to 'lib')
-rw-r--r-- | lib/render-msg.js | 6 |
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)), |