aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-01-23 13:00:07 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2019-01-23 13:30:56 -1000
commit54db98a9cf71d5f79379ab83c12474a688f0d5ae (patch)
treea55199f949e51a7db2817b490844e13efe95f99f /lib/render-msg.js
parent0ba75f061e35ca3b04aaf7e911bbcb089b473c2a (diff)
downloadpatchfoo-54db98a9cf71d5f79379ab83c12474a688f0d5ae.tar.gz
patchfoo-54db98a9cf71d5f79379ab83c12474a688f0d5ae.zip
Add about-diff page
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index e40934e..fbaf741 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -175,7 +175,10 @@ RenderMsg.prototype.actions = function (mini) {
}.bind(this)) : '',
this.c.type === 'edit' ? [
h('a', {href: this.toUrl('/edit-diff/' + encodeURIComponent(this.msg.key)),
- title: 'view post edit diff'}, 'diff'), ' '] : '',
+ title: 'view post edit diff'}, 'diff'), ' '] :
+ this.c.type === 'about' && typeof this.c.description === 'string' ? [
+ h('a', {href: this.toUrl('/about-diff/' + encodeURIComponent(this.msg.key)),
+ title: 'view about description diff'}, 'diff'), ' '] : '',
this.c.type === 'gathering' ? [
h('a', {href: this.render.toUrl('/about/' + encodeURIComponent(this.msg.key))}, 'about'), ' '] : '',
this.c.type === 'ssb-igo' && (lastMove = this.c.values[0] && this.c.values[0].lastMove) ? [