Subject: [patch] improvement - Formatting of Services page

From: Dirk-Willem van Gulik <[email-masked]>
Date: Wed, 25 Aug 2010 10:42:48 +0200

Folks,

Pertaining to the previous patch; and the general habit of people to have more in the info/note/comments/etc fields - I found it useful to add below* - as now the comment/info/etc fields are a lot bigger.

Suggestions how to do this cleaner from a CSS maven appreciated.

Thanks,

Dw.

*: and perhaps give the left column a bit more space.

# this patch is contributed under Argus its Perl Artistic License.
#
diff -c -w -r argus-dev-20100109.org/src/Service.pm argus-dev-20100109/src/Service.pm
*** argus-dev-20100109.org/src/Service.pm	Tue Aug 24 23:37:37 2010
--- argus-dev-20100109/src/Service.pm	Wed Aug 25 09:45:41 2010
***************
*** 676,682 ****
  	if( $k eq 'ovstatus' || $k eq 'flags' ){
  	    $vv = "<L10N $v>";
  	}
! 	print $fh "<TR><TD><L10N $kk></TD><TD$x>$vv</TD></TR>\n" if defined($v);
  	if( $k eq 'ovstatus' && $v eq 'down' && $s->{showreason} && $s->{reason} ){
  	    print $fh "<TR><TD>...<L10N because></TD><TD>$me->{srvc}{reason}</TD></TR>\n";
  	}
--- 676,682 ----
  	if( $k eq 'ovstatus' || $k eq 'flags' ){
  	    $vv = "<L10N $v>";
  	}
! 	print $fh "<TR><TD VALIGN=TOP><L10N $kk></TD><TD$x>$vv</TD></TR>\n" if defined($v);
  	if( $k eq 'ovstatus' && $v eq 'down' && $s->{showreason} && $s->{reason} ){
  	    print $fh "<TR><TD>...<L10N because></TD><TD>$me->{srvc}{reason}</TD></TR>\n";
  	}