Commit 7ef25848b38465fe70b65ab91bf905ae927d4d7c
Link ssb-web updates to root message, including name
cel committed on 9/25/2018, 5:37:23 AMParent: 47442aa20e3a4738708249618caf3c32fbea07bb
Files changed
lib/render-msg.js | changed |
lib/render-msg.js | |||
---|---|---|---|
@@ -1790,17 +1790,17 @@ | |||
1790 | 1790 … | RenderMsg.prototype.webRoot = function (cb) { | |
1791 | 1791 … | var self = this | |
1792 | 1792 … | var site = u.isRef(this.c.site) && this.c.site | |
1793 | 1793 … | var root = u.isRef(this.c.root) && this.c.root | |
1794 | - self.wrapMini(h('span', | ||
1795 | - 'updated website ', | ||
1796 | - site ? [ | ||
1797 | - h('a', {href: this.toUrl('/web/' + encodeURIComponent(site))}, site.substr(0, 8) + '…'), ' ' | ||
1798 | - ] : '', | ||
1799 | - root ? [ | ||
1800 | - 'to ', h('a', {href: this.toUrl(root)}, root.substr(0, 8) + '…') | ||
1801 | - ] : '' | ||
1802 | - ), cb) | ||
1794 … | + self.link(site, function (err, siteLink) { | ||
1795 … | + self.wrapMini(h('span', | ||
1796 … | + 'updated website ', | ||
1797 … | + siteLink || '', ' ', | ||
1798 … | + root ? [ | ||
1799 … | + 'to ', h('a', {href: self.toUrl(root)}, root.substr(0, 8) + '…') | ||
1800 … | + ] : '' | ||
1801 … | + ), cb) | ||
1802 … | + }) | ||
1803 | 1803 … | } | |
1804 | 1804 … | ||
1805 | 1805 … | function dateSpan(date) { | |
1806 | 1806 … | return h('span', { |
Built with git-ssb-web