aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-09-24 19:37:23 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2018-09-24 19:37:23 -1000
commit7ef25848b38465fe70b65ab91bf905ae927d4d7c (patch)
treec7960bbd2f3c244c92567391fcf1be2f357523b5 /lib/render-msg.js
parent47442aa20e3a4738708249618caf3c32fbea07bb (diff)
downloadpatchfoo-7ef25848b38465fe70b65ab91bf905ae927d4d7c.tar.gz
patchfoo-7ef25848b38465fe70b65ab91bf905ae927d4d7c.zip
Link ssb-web updates to root message, including name
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index 694f8d0..90fa5a0 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -1791,15 +1791,15 @@ RenderMsg.prototype.webRoot = function (cb) {
var self = this
var site = u.isRef(this.c.site) && this.c.site
var root = u.isRef(this.c.root) && this.c.root
- self.wrapMini(h('span',
- 'updated website ',
- site ? [
- h('a', {href: this.toUrl('/web/' + encodeURIComponent(site))}, site.substr(0, 8) + '…'), ' '
- ] : '',
- root ? [
- 'to ', h('a', {href: this.toUrl(root)}, root.substr(0, 8) + '…')
- ] : ''
- ), cb)
+ self.link(site, function (err, siteLink) {
+ self.wrapMini(h('span',
+ 'updated website ',
+ siteLink || '', ' ',
+ root ? [
+ 'to ', h('a', {href: self.toUrl(root)}, root.substr(0, 8) + '…')
+ ] : ''
+ ), cb)
+ })
}
function dateSpan(date) {