public inbox for gnats-devel@sourceware.org
 help / color / mirror / Atom feed
From: stefan.kaes@portax.com
To: Yngve Svendsen <yngve.svendsen@clustra.com>
Cc: gnats-devel@sources.redhat.com,
	gnats-devel-owner@sources.redhat.com, pfeifer@dbai.tuwien.ac.at
Subject: Antwort: Gnatsweb: patch to add stylesheet support
Date: Tue, 20 Mar 2001 05:03:00 -0000	[thread overview]
Message-ID: <OFDBF4B354.8B1050CA-ONC1256A15.00479C01@portax.com> (raw)

[-- 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







             reply	other threads:[~2001-03-20  5:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-20  5:03 stefan.kaes [this message]
2001-03-20  5:09 ` Yngve Svendsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=OFDBF4B354.8B1050CA-ONC1256A15.00479C01@portax.com \
    --to=stefan.kaes@portax.com \
    --cc=gnats-devel-owner@sources.redhat.com \
    --cc=gnats-devel@sources.redhat.com \
    --cc=pfeifer@dbai.tuwien.ac.at \
    --cc=yngve.svendsen@clustra.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).