OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • os-theme-rebellion help
« previous next »
  • Print
Pages: [1]

Author Topic: os-theme-rebellion help  (Read 4990 times)

Charles2019

  • Newbie
  • *
  • Posts: 15
  • Karma: 2
    • View Profile
os-theme-rebellion help
« on: April 07, 2019, 12:35:55 am »
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.
Logged

fabian

  • Moderator
  • Hero Member
  • *****
  • Posts: 2769
  • Karma: 200
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: os-theme-rebellion help
« Reply #1 on: April 07, 2019, 07:42:16 am »
/usr/local/opnsense/www/themes/rebellion/
Logged

Charles2019

  • Newbie
  • *
  • Posts: 15
  • Karma: 2
    • View Profile
Re: os-theme-rebellion help
« Reply #2 on: April 11, 2019, 11:56:02 pm »
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:
Code: [Select]
<!--            <table class="table table-striped">-->

Then around line 420 I added the below code:
Code: [Select]
<?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.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • Development and Code Review (Moderator: fabian) »
  • os-theme-rebellion help
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2