absolute base path, do the check case insensitive to handle if
HTTP_HOST e.g. comes in as FreeBSD.org.
Break a rather long line (being changed anyway) to improve
readability.
http://www.w3.org/1999/xhtml, which is the namespace used by the XHTML
DTD's.
This fixes layout/rendering of output from the CGI scripts when using
Opera.
1. If we're not running under cgi (for the mailindex run out of cron)
2. If we're running on docs.freebsd.org (because it doesn't have the
style files, and the "home" link would point to docs home, not
the home home)
3. If we're running on people.freebsd.org, to facilitate my testing
Otherwise, keep it relative for the benefit of mirrors.
docs problem pointed out by: Mark Trettin (mkt AT trettin DOT org)
It looks like Firefox applies the relative size twice, making the fonts
too small. Instead, now they'll be too big - just a bit bigger than
the "Large" web site font.
This only applies to HTML4 pages, which as I mentioned before are
cvsweb and mailindex, and I don't think that mailindex uses tables.
This means that this problem should be fixed when someone (no promises)
imports cvsweb 3 which uses XHTML.
This commit brought to you by CSS, Web Quirks, IE and our favorite IRC channel.
Add an optional 2nd argument to html_header(); if it's missing or
supplied and non-zero, html_header returns XHTML doctype; if it's
supplied and zero, html_header returns HTML 4.01 doctype.
cvsweb and mailindex are the only HTML4 holdouts. cvsweb should
be updated to 3.x which is XHTML, but that's a seperate step.
I left $hsty_home alone, because I couldn't find anything that used
it or any obvious image to use for it in the new layout.
pass the xhtml compliant check, making us conforming to standards.
This also finishes the update to query-pr-summary.cgi which is now
XHTML 1.0 compliant.
Submitted by: Daniel Gerzo <danger at rulez dot sk>
database queries once again, because I've received complaints that the
HTML output mode of the PR query scripts outputs huge, bloated tables
after the style changes I made to beautify HTML output.
This moves all the visual tweaks of the output in a CSS stylesheet and
add a $t_style option to the common cgi-style.pl script. If not set,
the style defaults to empty, but users of cgi-style.pl can set this to
a local CSS style like this:
$t_style="<style type=\"text/css\">...</style>";
or use it to refer from the header of the HTML output to an external
CSS stylesheet.
The HTML output size is substantially reduced now (at least 50% of the
size was caused by many repetitions of style="" attributes), but it's
still larger than the preformatted <pre> output because of all the
<tr> and <td> tags.
Yes, this is supposed to be a new top level in the repository.
For the moment any changes to this area must be cleared by myself
or Jordan. Once the kinks are worked out, the policy will probably
be relaxed.