aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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) {