git ssb

16+

cel / patchfoo



Commit 7ef25848b38465fe70b65ab91bf905ae927d4d7c

Link ssb-web updates to root message, including name

cel committed on 9/25/2018, 5:37:23 AM
Parent: 47442aa20e3a4738708249618caf3c32fbea07bb

Files changed

lib/render-msg.jschanged
lib/render-msg.jsView
@@ -1790,17 +1790,17 @@
17901790 RenderMsg.prototype.webRoot = function (cb) {
17911791 var self = this
17921792 var site = u.isRef(this.c.site) && this.c.site
17931793 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 + })
18031803 }
18041804
18051805 function dateSpan(date) {
18061806 return h('span', {

Built with git-ssb-web