Create an admin page to customize the class of each status
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3108179. -->
Reported by: [zenimagine](https://www.drupal.org/user/3142787)
>>>
<p>Create an admin page to customize the class of each status.</p>
<p>My template looks like the code below but impossible to change the class according to the status.</p>
<p>Currently the class is <code>text-success</code> for all status, I want to put :</p>
<p>- <code>text-success</code> if online (green)<br>
- <code>text-warning</code> if absent (orange)<br>
- <code>text-danger</code> if offline (red)</p>
<pre><div data-user-online-status-uid="{{ uid }}" class="user-online-status"><br><br> {# status class will be added by JS to .status #}<br> <span class="status"><br><br> {# status string will be printed into .response #}<br> <div class="mt-2 font-weight-bold font-italic text-success"><br> <i class="fa fa-circle fa-lg"></i> <span class="response"></span><br> </div><br><br> </span><br></div></pre>
issue