Vshell-CSS- change to red ou yellow the entire row

Information and discussions relating to the Nagios V-Shell web interface.

Vshell-CSS- change to red ou yellow the entire row

Postby junior_duda » Mon Mar 18, 2013 9:56 am

Hi,

I'm trying to change the CSS to Vshell display the problems in red or yellow all the row not only the cell!

Thanks Who could help me


Image
junior_duda
 
Posts: 3
Joined: Mon Mar 04, 2013 11:48 am

Re: Vshell-CSS- change to red ou yellow the entire row

Postby mguthrie » Mon Mar 18, 2013 10:15 am

In the vshell/views/hosts.php and vshell/views/services.php, just move the class assignment to the table row instead of the td's.

Code: Select all
      <tr>   
         <td><a href="{$url}">{$host['host_name']}</a>{$icons}</td>
         <td class="{$tr}">{$host['current_state']}</td>
         <td>{$host['duration']}</td>
         <td>{$host['attempt']}</td>
         <td>{$host['last_check']}</td>
         <td>{$host['plugin_output']}</td>
      </tr>


To:

Code: Select all
      <tr class="{$tr}">   
         <td><a href="{$url}">{$host['host_name']}</a>{$icons}</td>
         <td >{$host['current_state']}</td>
         <td>{$host['duration']}</td>
         <td>{$host['attempt']}</td>
         <td>{$host['last_check']}</td>
         <td>{$host['plugin_output']}</td>
      </tr>
mguthrie
 
Posts: 4384
Joined: Mon Jun 14, 2010 10:21 am


Return to Nagios V-Shell

Who is online

Users browsing this forum: No registered users and 2 guests