This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/views/participant_view.js

19 lines
489 B
JavaScript

/**
This view renders a participant in a topic
@class ParticipantView
@extends Discourse.View
@namespace Discourse
@module Discourse
**/
Discourse.ParticipantView = Discourse.View.extend({
templateName: 'participant',
toggled: function() {
return this.get('controller.postStream.userFilters').contains(this.get('participant.username'));
}.property('controller.postStream.userFilters.[]')
});
Discourse.View.registerHelper('participant', Discourse.ParticipantView);