PDA

View Full Version : PATCH: Vertical hostnames in overview page


cameronsto
31-01-2006, 16:29
I took the instructinos from this (http://www.zabbix.com/forum/showthread.php?t=1843) thread and made a patch to apply the same changes.

Here's (http://silos.gorkic.com/zabb/overview.JPG) a screenshot of the patch in action.

Unfortunately this only works in IE.

Great job primos. Looks awesome

-cameron

axel
10-02-2006, 12:51
HI and thx

Can you give me an Example.

I get the following errors

pc-52:/var/www# patch -i vertical_header_overview.diff.txt
can't find file to patch at input line 4
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN zabbix11beta6/css.css zabbix_new/css.css
|--- zabbix11beta6/css.css 2006-01-27 09:51:37.000000000 -0500
|+++ zabbix_new/css.css 2006-01-31 09:14:23.000000000 -0500
--------------------------
File to patch:

Alexei
10-02-2006, 14:06
Can this be implemented for Mozilla somehow? Is it something non-standard?

edeus
13-02-2006, 01:21
I would be happy with GD library generated images acting as the headers. Easy to implement and then you could get some nice alert effects on the image as well.

Wolfgang
13-02-2006, 21:10
Can this be implemented for Mozilla somehow? Is it something non-standard?

I am not an css expert. But it seems that the filter being used in the Stylesheet is not available in Mozilla or Firefox.

So if this should be implemented and work with browers other than Internet Explorer, then one way to go might be to render on the server as stated by edeus.

cameronsto
14-02-2006, 18:13
This is correct. The CSS attribute that is used is non-standard and IE specific. I've been out of town for the last week so I haven't looked into this further, but I'll see what I can come up with for using the PHP-GD library to make the names.

-cameron

bytesize
04-03-2006, 11:51
Hi,

Please can this patch be updated for beta7 - I'm desperate to get vertical hostnames back!

Thanks!

John

cameronsto
11-03-2006, 17:25
Here's an updated patch. DISCLAIMER: I have not tested this. I don't have a 1.1beta7 installation so I'm just working with the source and haven't actually put this patch in place and seen the results. If anyone is brave enough to try this please post back and let everyone else know. The changes are minimal so the only possible impact will be a messed up overview page until you fix it.

I've attached the patch and also an UNDO patch in case this breaks things.

-cameron

Note: removed patch file since it didn't work.

cameronsto
11-03-2006, 20:41
The previous patch didn't seem to work because the necessary css styles can't be applied to a row, only a cell or span. The attached patch here should apply it as a span.

-cameron

bytesize
11-03-2006, 21:59
Hi Cameron,

Success - it works!! I have modified the patch slightly to enable a few more tweaks:

- Changed line format of diff file to Unix
- Removed hosts array line from overview.php (caused duplication of headers)
- Added vertical-align: bottom; to the css.css file to align headers
- Changed ' to " in the span class

I have attached the patch to this post. Many, many thanks Cameron - without your help I would never have got this to work!

Thanks!

John