Allocate comments


(Evgeny) #1

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


Jump to latest reply, repetition
(Sam Saffron) #2

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


(Evgeny) #3

I did not know that. Thank you!