[racktables-users] Re: Help with theme/color changes and also banner messages

  • From: Denis Ovsienko <denis@xxxxxxxxxxxxx>
  • To: <racktables-users@xxxxxxxxxxxxx>
  • Date: Thu, 02 Mar 2017 14:28:45 +0000

---- On Wed, 01 Mar 2017 18:11:45 +0000 Marcos Duran  wrote ---- 

Hello!  

I was hoping get some assistance with changing some of the default color 
schemes in Racktables.  I didn't see anything in the usual documentation about 
it.  I wanted to ask if there is any theme structure in place, and/or where in 
the code I would go about making adjustments.  I'm looking to change the 
menuing and upper bar colors to delineate different installs of racktables we 
have to support different environments. 

Hello Marcos.

The colour theme is hardcoded but AFAIR there is a small hack: if you create a 
PHP file in plugins/ and call addCSS() from there, your CSS will override what 
is in pi.css.

Also, is there functionality to display a banner or a header above all the 
pages?  My intent here is to put short messages for our sysadmins there from 
time to time.

I don't remember anyone asking for this feature before. The only way to do it 
right now would be to modify the function renderInterfaceHTML(). If you prefer 
a proper permanent solution, please log a feature request or even better try to 
implement it and propose a patch. This does not look difficult.

-- 
    Denis Ovsienko



Other related posts: