[Lxr-commits] CVS: lxr/templates html-ident.html,NONE,1.1 html-dir.html,1.1,1.2 html-head.html,1.1,1
Brought to you by:
ajlittoz
|
From: Malcolm B. <mb...@us...> - 2001-09-27 16:12:24
|
Update of /cvsroot/lxr/lxr/templates
In directory usw-pr-cvs1:/tmp/cvs-serv1620/templates
Modified Files:
html-dir.html html-head.html lxr.conf
Added Files:
html-ident.html
Log Message:
Apply patch 458027 from Pavel Hlavnicka
Adds stylesheet (CSS) support to ident, source and diff.
Output style is now controllable from via the lxr.css stylesheet (example
provided in templates). Ident output now generated via a template rather
than hard coded.
Minor additional fixes by me result in the output of ident & source both
validating as HTML 4.01 Transitional.
--- NEW FILE: html-ident.html ---
Type the full name of an identifier to summarize
(a function name, variable name, typedef, etc).
<p>
Matches are case-sensitive.
<form method=get action="ident">
$variables
<b>Identifier: </b>
<input type=text name="i" value='$identifier' size="15">
<input type=submit value="Find">
</form>
<span class=search-ident>$identifier</span>
<p>
<table>
<tr><td colspan='2'><b>Declarations:</b></td></tr>
$refs{<tr>
<td>$fileref</td><td>$rel</td>
</tr>}
</table>
<p>
<table>
<tr><td colspan='2'><b>References:</b></td></tr>
$uses{<tr>
<td width='30'> </td><td>$fileref</td>
</tr>}
</table>
Index: html-dir.html
===================================================================
RCS file: /cvsroot/lxr/lxr/templates/html-dir.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- html-dir.html 2001/08/04 18:54:15 1.1
+++ html-dir.html 2001/09/27 16:12:21 1.2
@@ -1,13 +1,13 @@
<table border=0 cellspacing=0 width="100%">
<tr valign=middle>
- <th width="1%"> </th>
- <th width="1%" nowrap align=left>Name</th>
- <th width="1%" nowrap align=right>Size</th>
- <th width="1%" nowrap align=left>Date (GMT)</th>
- <th width="96%" nowrap align=left>Description</TH>
+ <th class='dirheader' width="1%"> </th>
+ <th class='dirheader' width="1%" nowrap align=left>Name</th>
+ <th class='dirheader' width="1%" nowrap align=right>Size</th>
+ <th class='dirheader' width="1%" nowrap align=left>Date (GMT)</th>
+ <th class='dirheader' width="96%" nowrap align=left>Description</TH>
</tr>
$files{
- <tr valign=middle bgcolor="$bgcolor">
+ <tr valign=middle class="$css">
<td nowrap>$iconlink</td>
<td nowrap>$namelink</td>
<td nowrap align=right>$filesize{$bytes bytes} </td>
Index: html-head.html
===================================================================
RCS file: /cvsroot/lxr/lxr/templates/html-head.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- html-head.html 2001/08/04 18:54:15 1.1
+++ html-head.html 2001/09/27 16:12:21 1.2
@@ -3,45 +3,51 @@
<head>
<title>$title</title>
<base href=$baseurl>
+<link href="$stylesheet" rel="STYLESHEET" type="text/css"/>
</head>
-<body bgcolor=white text=black>
-<table width="100%" cellpadding=0 border=0>
- <tr valign=top>
- <td align=left valign=top>
+<body>
+<table width='100%' border='0' cellpadding='0' cellspacing='0'>
+ <tr>
+ <td rowspan='3'>
<img src="pengmini.gif"
- alt="Penguin" border=0 width=67 height=92 align=middle>
+ alt="Penguin" border=0 width=67 height=92 align=middle>
</td>
<td>
- <table width="100%" cellpadding=0 border=0>
- <tr valign=top>
- <td align=center>
- <h1>
- <a href="blurb.html">
- Cross-Referencing Linux</a><br>
- $banner
- </h1>
- </td>
- <td align=right nowrap>
- $modes{
- [ $modelink ]<br>}
+ <table width='100%' border='0' cellpadding='0' cellspacing='0'>
+ <tr>
+ <td align='center'>
+ <a href="blurb.html" class=main>Cross-Referencing Linux</a>
</td>
</tr>
- </table>
- <table width="100%" cellpadding=0 border=0>
- $variables{
<tr>
- <td align=left>
- $varname:
- </td>
- <td align=right>
- $varlinks{
- [ $varvalue ]}
- <br>
- </td>
- </tr>}
+ <td align=center>$banner</td>
+ </tr>
</table>
+ <td>
+ <td align='right'>
+ $modes{
+ [ $modelink ]<br>}
</td>
</tr>
+ <tr><td colspan='3'> </td></tr>
+ <tr>
+ <td colspan='3'>
+ <table width="100%" border=0 cellpadding='0' cellspacing='0'>
+ $variables{
+ <tr>
+ <td align=left>
+ $varname:
+ </td>
+ <td align=right>
+ $varlinks{
+ [ $varvalue ]}
+ <br>
+ </td>
+ </tr>}
+ </table>
+ </td>
+ </tr>
</table>
+
<hr>
Index: lxr.conf
===================================================================
RCS file: /cvsroot/lxr/lxr/templates/lxr.conf,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- lxr.conf 2001/08/04 18:54:15 1.1
+++ lxr.conf 2001/09/27 16:12:21 1.2
@@ -50,9 +50,11 @@
'htmlhead' => 'html-head.html',
'htmltail' => 'html-tail.html',
'htmldir' => 'html-dir.html',
+ 'htmlident' => 'html-ident.html',
'sourcehead' => 'html-head.html',
'sourcedirhead' => 'html-head.html',
+ 'stylesheet' => 'templates/lxr.css',
# sourceroot can either be the name of an ordinary directory
# containing one directory for each version, or cvs: and the name of a
@@ -104,8 +106,8 @@
# , 'LXR::Lang::Generic'],
['Perl', '(?i)\.pl$|\.pm$|\.perl$' #'
, 'LXR::Lang::Generic'],
-# ['php', '(?i)\.php$|\.php3$|\.phtml$' #'
-# , 'LXR::Lang::Generic'],
+ ['php', '(?i)\.php$|\.php3$|\.phtml$' #'
+ , 'LXR::Lang::Generic'],
['Python', '(?i)\.py$|\.python$' #'
, 'LXR::Lang::Generic'],
# ['rexx', '(?i)\.cmd$|\.rexx$|\.rx$' #'
|