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>&lt;div data-user-online-status-uid="{{ uid }}" class="user-online-status"&gt;<br><br>&nbsp; {# status class will be added by JS to .status #}<br>&nbsp; &lt;span class="status"&gt;<br><br>&nbsp;&nbsp;&nbsp; {# status string will be printed into .response #}<br>&nbsp;&nbsp;&nbsp; &lt;div class="mt-2 font-weight-bold font-italic text-success"&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;i class="fa fa-circle fa-lg"&gt;&lt;/i&gt; &lt;span class="response"&gt;&lt;/span&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br><br>&nbsp; &lt;/span&gt;<br>&lt;/div&gt;</pre>
issue