src/plugin/iframe_root/modules/notifications/narrative.js
/**
         * Returns an HTML string of the rendered notification.
         * I.e. goes from the structure from the Feeds service to
         * a readable string that makes sense.
         */
Returns an HTML string of the rendered notification.
Returns an HTML string of the rendered notification .
buildHtml() {
            let actor = this.entityHtml(this.note.actor),
                msg = '';
            return new Promise((resolve) => {
                switch(this.note.verb) {
                case 'requested':
                    msg = actor + ' has requested ' + this.permissionLevel() + 'access to ';
                    msg += this.entityHtml(this.note.object) + '.';
                    break;
                default:
                    msg = actor + ' ' + this.note.verb + ' ' + this.entityHtml(this.note.object);
                }
                resolve(msg);
            });
        }
buildHtml ( ) { let actor = this . entityHtml ( this . note . actor ) , msg = '' ; return new Promise ( ( resolve ) => { switch ( this . note . verb ) { case 'requested' : msg = actor + ' has requested ' + this . permissionLevel ( ) + 'access to ' ; msg += this . entityHtml ( this . note . object ) + '.' ; break ; default : msg = actor + ' ' + this . note . verb + ' ' + this . entityHtml ( this . note . object ) ; } resolve ( msg ) ; } ) ; }
Returns an HTML string of the rendered notification.
Returns an HTML string of the rendered notification .