Introducing the new GNATS web interface.

This was written from scratch, and offers numerous enhancements over the
old script; notably:

- Patches are parsed, coloured, uudecoded, and downloadable.
- Cleaner, clearer layout.
- Easier-to-read Audit-Trail.

Reviewed by:	freebsd-www (well, I tried...)
Approved by:	simon
This commit is contained in:
Shaun Amott 2006-09-18 21:25:38 +00:00
parent 13e6491e6c
commit 2212fec61a
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=28661
3 changed files with 1038 additions and 209 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,4 +1,4 @@
# $FreeBSD: www/en/gifs/Makefile,v 1.53 2005/05/08 15:49:57 murray Exp $
# $FreeBSD: www/en/layout/css/Makefile,v 1.1 2005/10/04 05:49:13 murray Exp $
.if exists(../Makefile.conf)
.include "../Makefile.conf"
@ -7,6 +7,6 @@
.include "../Makefile.inc"
.endif
DATA= fixed.css fixed_large.css global.css iefixes.css layout.css navigation.css table.css text.css
DATA= fixed.css fixed_large.css global.css iefixes.css layout.css navigation.css table.css text.css query-pr.css
.include "${WEB_PREFIX}/share/mk/web.site.mk"

120
en/layout/css/query-pr.css Normal file
View file

@ -0,0 +1,120 @@
/*
* CSS stylesheet for the new query-pr interface.
*
* Copyright (C) 2006, Shaun Amott <shaun@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD$
*/
pre {
font-family: Courier New;
font-size: 100%;
white-space: pre;
margin-top: 0px;
margin-bottom: 0px;
overflow: scroll;
max-height: 600px;
}
/* Fields */
td {
vertical-align: top;
}
.mfield {
padding: 10px;
width: 100%;
}
.headtable {
border-left: 1px solid #999999;
border-bottom: 1px solid #999999;
width: 100%;
}
.headtable .key {
font-weight: bold;
width: 12em;
}
.headtable .val {
}
.headtable .blkhead {
font-weight: bold;
}
/* Patch block */
.patchblock {
margin-left: auto;
margin-right: auto;
border: 1px solid #999999;
background-color: #EFEFBB;
width: 90%;
}
.patchblock .info { background-color: #ACACAA; }
.patchblock .content {
font-family: Courier New;
white-space: pre;
}
/* Audit block */
.auditblock {
margin-left: auto;
margin-right: auto;
border: 1px solid #999999;
background-color: #EFEFEF;
width: 90%;
}
.auditblock .key { font-weight: bold; width: 60px; }
.auditblock .info { background-color: #ACACAA; }
/* Reply block */
.replyblock {
margin-left: auto;
margin-right: auto;
border: 1px solid #999999;
background-color: #EFEFEF;
width: 90%;
}
.replyblock .info { background-color: #AA9900; }
.replyblock .key { background-color: #CCCCCC; font-weight: bold; width: 60px; }
.replyblock .val { background-color: #CCCCCC; }
.quote0 { color: #DD0000; }
.quote1 { color: #0000DD; }
.patch_plusline { color: #FF0000; }
.patch_minusline { color: #0000FF; }
.patch_contextline { color: #00AA00; }
.patch_revinfo { font-weight: bold; }
.patch_hunkinfo { font-weight: bold; }