bjd/vnstat-php-frontend — pull request #6 by EugeneKay (2012-05-17 08:15:21+00:00)
Title: Add support for "collapsed" interface headers

In situations where there are a lot of interfaces being monitored it is convenient to hide the links to "summary" et al for interfaces which you are not actively viewing, so as to conserve screen real estate.

This patch does this by adding an "active" class to the currently-selected interface, and adding a few tweaks to the style.css for the light theme. There are also some other minor CSS tweaks to improve(IMO) the appearance of the #sidebar li.iface block, which you may or may not want to merge.

I considered adding a config variable to toggle the addition of the "active" CSS class, but I came to the conclusion that this tweak is better done in CSS.