Allocate comments

Hello!

There is a small offer. But I think it will be useful to many. Because Saw a lot of topics here.

File widgets/post.js.es6

There just add:

https://github.com/Toxu-ru/Toxu/blob/master/assets/javascripts/discourse/widgets/post.js.es6#L414

An additional class will appear, which any administrator can use as you like.

Demo

See that line, there is a clear API for injecting classes, you don’t need to be overriding the whole widget.

4 Likes

I did not know that. Thank you!