git ssb

16+

cel / patchfoo



Commit 0f2d21603df91e7285c4a50da9d9dadf95f600b6

Render about-resource messages

cel committed on 12/31/2017, 2:55:41 AM
Parent: c3d96d538721cc63ce7226a5ccf0bf754ec5054e

Files changed

lib/render-msg.jschanged
lib/render-msg.jsView
@@ -285,8 +285,9 @@
285285 case 'talenet-idea-hat': return this.ideaHat(cb)
286286 case 'talenet-idea-update': return this.ideaUpdate(cb)
287287 case 'talenet-idea-comment':
288288 case 'talenet-idea-comment_reply': return this.ideaComment(cb)
289 + case 'about-resource': return this.aboutResource(cb)
289290 default: return this.object(cb)
290291 }
291292 }
292293
@@ -1626,4 +1627,14 @@
16261627 h('div', {innerHTML: self.render.markdown(self.c.text)}) : ''
16271628 ]), cb)
16281629 })
16291630 }
1631 +
1632 +RenderMsg.prototype.aboutResource = function (cb) {
1633 + var self = this
1634 + return self.wrap(h('div',
1635 + 'describes resource ',
1636 + h('a', {href: self.toUrl(self.c.about)}, self.c.name),
1637 + ':',
1638 + h('blockquote', {innerHTML: self.render.markdown(self.c.description)})
1639 + ), cb)
1640 +}

Built with git-ssb-web