* Antwort: Gnatsweb: patch to add stylesheet support
@ 2001-03-20 5:03 stefan.kaes
2001-03-20 5:09 ` Yngve Svendsen
0 siblings, 1 reply; 2+ messages in thread
From: stefan.kaes @ 2001-03-20 5:03 UTC (permalink / raw)
To: Yngve Svendsen; +Cc: gnats-devel, gnats-devel-owner, pfeifer
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3853 bytes --]
Does the gnatsweb version in CVS work with gnats 3.x.
Stefan Kaes
portax.com GmbH
Zielstattstrasse 40, Geb. 16
81379 München
Tel: +49 (0)89 748 99 - 127
Fax: +49 (0)89 748 99 - 111
Mob: +49 (0)172 89 86 401
E-Mail: stefan.kaes@portax.com
Web: http://www.portax.com
Yngve Svendsen
<yngve.svendsen@clustra.co An: gnats-devel@sources.redhat.com
m> Kopie: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
Gesendet von: Thema: Gnatsweb: patch to add stylesheet support
gnats-devel-owner@sources.
redhat.com
20.03.2001 13:47
The following patch adds the ability to have an external stylesheet linked
to all pages generated by Gnatsweb. It is against the version in the
current GNATS 4 CVS.
Gerald: Isn't it a good idea to change the version number of the
development Gnatsweb in CVS to distinguish it from the version that works
with GNATS 3.x? I would suggest going to "4.0-dev". In the future, version
numbers don't need to be synced between GNATS and Gnatsweb, but I think it
is a good idea to use a common starting point for version 4, since older
versions of Gnatsweb won't work with GNATS 4. Does that make sense?
Next, I'll be going through some of the HTML constructs produced by
Gnatsweb in order to make them more amenable to formatting with
stylesheets. Expect more patches soon.
- Yngve
Index: gnatsweb.pl
===================================================================
RCS file: /cvs/gnats/gnats/contrib/gnatsweb/gnatsweb.pl,v
retrieving revision 2.24
diff -u -p -r2.24 gnatsweb.pl
--- gnatsweb.pl 2001/02/08 10:49:15 2.24
+++ gnatsweb.pl 2001/03/20 12:40:10
@@ -26,6 +26,11 @@ $site_banner_text = 'gnatsweb';
$site_banner_background = '#000000';
$site_banner_foreground = '#ffffff';
+# Uncomment the following line and insert stylesheet URL in order to
+# link all generated pages to an external stylesheet. Both absolute
+# and relative URLs are supported.
+#$site_stylesheet=' http://url.of/stylesheet ';
+
$popup_menu_becomes_obnoxious = 20;
$client_would_have_exited = 0;
@@ -2182,6 +2187,8 @@ sub page_start_html
my @args = (-title=>"$title - $site_banner_text");
push(@args, -bgcolor=>$site_background)
if defined($site_background);
+ push(@args, -style=>{-src=>$site_stylesheet})
+ if defined($site_stylesheet);
print $q->start_html(@args);
# Add the page banner. This banner is a string slammed to the right
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Antwort: Gnatsweb: patch to add stylesheet support
2001-03-20 5:03 Antwort: Gnatsweb: patch to add stylesheet support stefan.kaes
@ 2001-03-20 5:09 ` Yngve Svendsen
0 siblings, 0 replies; 2+ messages in thread
From: Yngve Svendsen @ 2001-03-20 5:09 UTC (permalink / raw)
To: stefan.kaes; +Cc: gnats-devel, gnats-devel-owner, pfeifer
At 14:03 20.03.2001 +0100, stefan.kaes@portax.com wrote:
>Does the gnatsweb version in CVS work with gnats 3.x.
>
>Stefan Kaes
As far as I know, it doesn't. Making a version of the stylesheet patch for
the older Gnatsweb should be very easy. I'll look into it.
- Yngve
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-03-20 5:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-20 5:03 Antwort: Gnatsweb: patch to add stylesheet support stefan.kaes
2001-03-20 5:09 ` Yngve Svendsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).