os-theme-rebellion help

Started by Charles2019, April 07, 2019, 12:35:55 AM

Previous topic - Next topic
I have the os-theme-rebellion theme installed and I would like to make some modifications to the theme.
What is the location of where the theme is installed?

On the Firewall -> Log Files -> Live View where allowed traffic has green fill and blocked traffic has a red fill, I would like to apply it similarly to Services -> DHCPv4 -> Leases where green would show online and red would show offline.

/usr/local/opnsense/www/themes/rebellion/

Well after looking around, I actually had to modify this file:
/usr/local/www/status_dhcp_leases.php

On line 358 I commented it out as such:

<!--            <table class="table table-striped">-->


Then around line 420 I added the below code:

<?php If ($data['online'] == 'offline') { ?>
<tr style="background:rgba(235, 9, 9, 0.3); border: 2px solid black; border-radis:
5px;">
<?php } else { ?>
<tr style="background:rgba(5, 142, 73, 0.3); border: 2px solid black; border-radis: 5px;">
<?php } ?>




When looking at the main.css file for the Rebellion theme, I noticed the table-striped class but it not only affects the DHCP v4 Status page, but several other pages.  How can I edit the main.css file to where it will only affect the DHCP v4 Status page?

P.S. Not worried about DHCP v6 as I don't use IP6 in my network at all.