Introducing the 3rd generation PR viewer.

This is a significant improvement over the previous version, with more
robust patch handling, better encoding/charset handling, numerous
long-overdue bug fixes and a generally more maintainable codebase.
This commit is contained in:
Shaun Amott 2011-07-20 22:23:23 +00:00
parent a667147674
commit defc87e9c4
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=37445
12 changed files with 2720 additions and 1129 deletions

View file

@ -1,7 +1,7 @@
/*
* CSS stylesheet for the new query-pr interface.
*
* Copyright (C) 2006, Shaun Amott <shaun@FreeBSD.org>
* Copyright (C) 2006-2011, Shaun Amott <shaun@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -25,17 +25,25 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $FreeBSD: www/en/layout/css/query-pr.css,v 1.3 2006/12/09 15:48:29 shaun Exp $
* $FreeBSD: www/en/layout/css/query-pr.css,v 1.4 2007/06/04 04:39:51 chinsan Exp $
*/
pre {
font-family: "Courier New", Courier, monospace;
.attachwin {
font-size: 100%;
white-space: pre;
margin-top: 0px;
margin-bottom: 0px;
overflow: scroll;
max-height: 600px;
max-width: 655px;
width: 655px;
margin-left: auto;
margin-right: auto;
}
pre {
font-family: "Courier New", "Courier", monospace;
font-size: 100%;
white-space: pre;
}
/* Fields */
@ -44,15 +52,16 @@ td {
vertical-align: top;
}
.mfield {
padding: 10px;
width: 100%;
.mfield, p {
padding-left: 1.4em;
padding-right: 1.4em;
}
.headtable {
border-left: 1px solid #999999;
border-bottom: 1px solid #999999;
width: 100%;
margin-bottom: 16px;
}
.headtable .key {
@ -67,20 +76,30 @@ td {
font-weight: bold;
}
.mfieldtable {
border-left: 1px solid #999999;
border-bottom: 1px solid #999999;
width: 100%;
margin-bottom: 16px;
margin-top: 16px;
font-weight: bold;
}
/* Patch block */
.patchblock {
margin-left: auto;
margin-right: auto;
border: 1px solid #999999;
background-color: #EFEFBB;
width: 90%;
margin-left: auto;
margin-right: auto;
max-width: 675px;
margin-top: 1.4em;
}
.patchblock .info {
background-color: #ACACAA;
text-align: left;
}
.patchblock .info { background-color: #ACACAA; }
.patchblock .content {
font-family: "Courier New", Courier, monospace;
white-space: pre;
}
@ -92,9 +111,16 @@ td {
border: 1px solid #999999;
background-color: #EFEFEF;
width: 90%;
margin-top: 1.4em;
}
.auditblock .key {
font-weight: bold;
width: 6.0em;
}
.auditblock .info {
background-color: #ACACAA;
text-align: center;
}
.auditblock .key { font-weight: bold; width: 60px; }
.auditblock .info { background-color: #ACACAA; }
/* Reply block */
@ -105,16 +131,19 @@ td {
border: 1px solid #999999;
background-color: #EFEFEF;
width: 90%;
margin-top: 1.4em;
}
.replyblock .info { background-color: #AA9900; }
.replyblock .key { background-color: #CCCCCC; font-weight: bold; width: 60px; }
.replyblock .val { background-color: #CCCCCC; }
/* Unexpected (manually inserted) text block */
.unexpectedblock {
width: 100%;
.replyblock .info {
background-color: #AA9900;
text-align: center;
}
.replyblock .key {
background-color: #CCCCCC;
font-weight: bold;
width: 6.0em;
}
.replyblock .val {
background-color: #CCCCCC;
}
.quote0 { color: #DD0000; }
@ -127,3 +156,10 @@ td {
.patch_hunkinfo { font-weight: bold; }
.mimeboundary { border-top: 1px #DD0000 dashed; border-bottom: 0px; }
/* Footer */
.footerlinks {
margin-top: 40px;
}