stas 02/01/15 07:39:27 Modified: src style.css tmpl/custom/html index index_toc page page_body tail Added: src/images index_bullet.gif tmpl/custom/html index_toc_section page_toc page_toc_section Removed: tmpl/custom/html toc tocsection Log: - make a nicer tail - improve the index page toc (involved splitting/renaming templates) Revision Changes Path 1.5 +16 -15 modperl-docs/src/style.css Index: style.css =================================================================== RCS file: /home/cvs/modperl-docs/src/style.css,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- style.css 15 Jan 2002 13:26:58 -0000 1.4 +++ style.css 15 Jan 2002 15:39:26 -0000 1.5 @@ -1,11 +1,10 @@ body { font-family: helvetica, verdana, sans-serif; - font-size:small; + font-size: small; color: #000000; background-color: #000066; } - .headline { padding: 2px; background-color: #828DA6; @@ -43,6 +42,7 @@ div.notactivenav a {text-decoration: none; color: #525D76;} div.toc a {text-decoration: none; color: #0000ff;} +/* boxes */ div.leftcont { position: absolute; top: 5px; @@ -56,22 +56,23 @@ left: 175px; padding: 0px; margin-right: 10px; - background-color: #ffffff; } div.content { padding: 5px; - border: 5px; + border: 2px; border-style: solid; - border-color: #525D76; + border-color: #000000; background-color: #ffffff; } div.tail { - padding: 5px; - border: 5px; + padding: 1px; + font-size: x-small; + font-family: helvetica, verdana, sans-serif; + border: 2px; border-style: solid; - border-color: #525D76; + border-color: #000000; background-color: #ffffff; } @@ -100,7 +101,7 @@ padding: 5px; border: 1px; border-style: solid; - border-color: #525D76; + border-color: #000000; text-align: center; } @@ -109,7 +110,7 @@ padding: 2px; border: 0px; border-style: solid; - border-color: #525D76; + border-color: #000000; } div.activenav { @@ -123,7 +124,7 @@ font-weight: bold; border: 1px; border-style: solid; - border-color: #525D76; + border-color: #000000; margin-top: -1px; } @@ -143,18 +144,18 @@ } div.menu { - border: 3px; + border: 1px; padding: 5px; border-style: solid; - border-color: #525D76; + border-color: #000000; background-color: #ffffff; } div.ad { - border: 3px; + border: 1px; padding: 5px; border-style: solid; - border-color: #525D76; + border-color: #000000; background-color: #ffffff; font-size: x-small; } 1.1 modperl-docs/src/images/index_bullet.gif <<Binary file>> 1.5 +1 -3 modperl-docs/tmpl/custom/html/index Index: index =================================================================== RCS file: /home/cvs/modperl-docs/tmpl/custom/html/index,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- index 15 Jan 2002 13:26:25 -0000 1.4 +++ index 15 Jan 2002 15:39:27 -0000 1.5 @@ -21,9 +21,7 @@ [% INCLUDE index_body %] </div> <br> - <div class='tail'> - [% INCLUDE tail %] - </div> + [% INCLUDE tail %] </div> </body> 1.3 +2 -2 modperl-docs/tmpl/custom/html/index_toc Index: index_toc =================================================================== RCS file: /home/cvs/modperl-docs/tmpl/custom/html/index_toc,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- index_toc 10 Jan 2002 18:24:34 -0000 1.2 +++ index_toc 15 Jan 2002 15:39:27 -0000 1.3 @@ -14,11 +14,11 @@ SET counter = 0; FOREACH group = toc; "<h3>Part ${numbers.$counter}: ${group.group_title}</h3>"; - INCLUDE tocsection subs=group.subs; + INCLUDE index_toc_section subs=group.subs; counter = counter + 1; END; ELSE; - INCLUDE tocsection subs=toc; + INCLUDE index_toc_section subs=toc; END; %] 1.5 +1 -3 modperl-docs/tmpl/custom/html/page Index: page =================================================================== RCS file: /home/cvs/modperl-docs/tmpl/custom/html/page,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- page 15 Jan 2002 13:26:25 -0000 1.4 +++ page 15 Jan 2002 15:39:27 -0000 1.5 @@ -24,9 +24,7 @@ [% INCLUDE page_body %] </div> <br> - <div class='tail'> - [% INCLUDE tail %] - </div> + [% INCLUDE tail %] </div> </body> 1.2 +1 -1 modperl-docs/tmpl/custom/html/page_body Index: page_body =================================================================== RCS file: /home/cvs/modperl-docs/tmpl/custom/html/page_body,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- page_body 5 Jan 2002 19:29:53 -0000 1.1 +++ page_body 15 Jan 2002 15:39:27 -0000 1.2 @@ -9,7 +9,7 @@ nav=doc.nav rel_doc_root=doc.dir.rel_doc_root; - INCLUDE toc toc=doc.toc; + INCLUDE page_toc toc=doc.toc; # prepare section sub-menus buttons = [ 1.2 +25 -19 modperl-docs/tmpl/custom/html/tail Index: tail =================================================================== RCS file: /home/cvs/modperl-docs/tmpl/custom/html/tail,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- tail 5 Jan 2002 19:29:53 -0000 1.1 +++ tail 15 Jan 2002 15:39:27 -0000 1.2 @@ -1,19 +1,25 @@ -<hr size=1 noshade> -<center> -<table border=0> -<tr><td> -<a href="http://perl.apache.org/"><img src="[% doc.dir.abs_doc_root %]/images/mod_perl.gif" alt="Mod Perl Icon" height=30 width=90></a> -</td><td> -<a href="http://validator.w3.org/check/referer"><img border="0" src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!" height="31" width="88"></a> -</td><td> -<a href="http://jigsaw.w3.org/css-validator/"><img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!"></a> -</td><td> -[% PROCESS splash/ttpower %] -</td></tr> -<tr><td colspan=4 align=right> -<font size=-2>Use of the Camel for Perl is -a trademark of <a href="http://www.ora.com">O'Reilly & Associates</a>, -and is used by permission. -Last Modified: [% doc.last_modified %]</font> -</td></tr> -</table></center> \ No newline at end of file +<!-- footer (tail )--> +<div class='tail'> + <br> + <center> + <table border="0" cellpadding="0" cellspacing="0" width="80%"> + <tr align="center"> + <td><a href="http://perl.apache.org/"><img src="[% doc.dir.abs_doc_root %]/images/mod_perl.gif" alt="Mod Perl Icon" height="30" width="90" border="0" alt="mod_perl logo"></a></td> + <td><a href="http://validator.w3.org/check/referer"><img border="0" src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!" height="31" width="88" alt="valid html 4.01"></a></td> + <td><a href="http://jigsaw.w3.org/css-validator/"><img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!"></a></td> + <td>[% PROCESS splash/ttpower %]</td> + </tr> + <tr> + <td colspan="4" align="center" style="font-size:x-small;">Use of the Camel for Perl is a trademark of <a href="http://www.ora.com">O'Reilly & Associates</a>, and is used by permission.</td> + </tr> + </table> + </center> + <br> + <table border="0" cellpadding="2" cellspacing="0" width="100%"> + <tr> + <td bgcolor="#828DA6" align="right" style="font-size:x-small;">Last modified [% doc.last_modified %]</td> + </tr> + </table> +</div> + +<!-- end footer (tail)--> 1.1 modperl-docs/tmpl/custom/html/index_toc_section Index: index_toc_section =================================================================== [% # render one level of toc and call recursively itself if there are # nested levels. # expected args: # subs - an array with keys indentical to 'toc' from above. %] [% FOREACH sec = subs %] <dl> <dt><a href="[% sec.link %]"><img src="[% doc.dir.abs_doc_root %]/images/index_bullet.gif" alt="-" align="center" border="0" height="18" width="18">[% sec.title %]</a> [% IF sec.abstract %] <dd>[% sec.abstract %] [% END %] </dl> [% END %] 1.1 modperl-docs/tmpl/custom/html/page_toc Index: page_toc =================================================================== [% # # expected args: # toc - an array with keys: link, title, abstract, subs # (subs is optional and includes a similar array) %] [% IF toc.size %] <a name="toc"></a> <table border=0 width=100%> <tr><th colspan=2><h3>Table of Contents</h3></th></tr> <tr><td valign='top'><div class='toc'> [% INCLUDE page_toc_section subs=toc %] </div></td> <td valign='top'> <div class='download'>Download:<br><br> <img src='[% doc.dir.abs_doc_root %]/images/pdf.gif' ALT='PDF'> (123 kB)<br> <br> <img src='[% doc.dir.abs_doc_root %]/images/page.gif' ALT='SRC'> (12 kB)<br> </div></td></tr></table> [% END %] 1.1 modperl-docs/tmpl/custom/html/page_toc_section Index: page_toc_section =================================================================== [% # render one level of toc and call recursively itself if there are # nested levels. # expected args: # subs - an array with keys indentical to 'toc' from above. %] <ul> [% FOREACH sec = subs %] <li><a href="[% sec.link %]">[% sec.title %]</a> [% IF sec.abstract %] <br>[% sec.abstract %]<br><br> [% END %] [% IF sec.subs %] [% PROCESS page_toc_section subs=sec.subs %] [% END %] </li> [% END %] </ul>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]