git ssb

16+

cel / patchfoo



Commit 5a3673608fbc233af6d2ea2e7988040f29b2f6e2

Disable rating rendering

cel committed on 11/6/2017, 5:22:55 PM
Parent: f66b6d81d24f304e732a70bd98478b83f1c0aec8

Files changed

lib/render-msg.jschanged
lib/render-msg.jsView
@@ -458,10 +458,12 @@
458458 attendee: true,
459459 startDateTime: true,
460460 endDateTime: true,
461461 location: true,
462 + /*
462463 rating: true,
463464 ratingType: true,
465 + */
464466 }
465467
466468 RenderMsg.prototype.about = function (cb) {
467469 var keys = Object.keys(this.c).sort().join()
@@ -532,15 +534,19 @@
532534 h('img.ssb-avatar-image', {
533535 src: this.render.imageUrl(img),
534536 alt: ' ',
535537 })) : '',
538 + /*
536539 this.c.rating != null ? this.aboutRating() : '',
540 + */
537541 extras ? this.valueTable(extras, 1, done())
538542 : ''
539543 ], elCb)
540544 done(cb)
541545 }
542546
547 +/*
548 + * disabled until it's clearer how to do this -cel
543549 RenderMsg.prototype.aboutRating = function (cb) {
544550 var rating = Number(this.c.rating)
545551 var type = this.c.ratingType || '★'
546552 var text = rating + ' ' + type
@@ -553,8 +559,9 @@
553559 ))
554560 }
555561 return el
556562 }
563 +*/
557564
558565 RenderMsg.prototype.contact = function (cb) {
559566 var self = this
560567 self.link(self.c.contact, function (err, a) {

Built with git-ssb-web