Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'cleanup-defaults'

  • Loading branch information...
commit fe8ac6e72acb0d9399005f7a65614ab6bad3d9e2 2 parents 725a262 + a8c9c90
@abh abh authored
Showing with 529 additions and 1,169 deletions.
  1. +2 −0  .gitignore
  2. +6 −6 README.md
  3. +6 −0 apache/conf/sites/static.tmpl
  4. +1 −1  combust
  5. +6 −6 docs/com/download/index.html
  6. +9 −129 docs/com/tpl/defaults
  7. +15 −0 docs/com/tpl/nav_tabs.html
  8. +34 −0 docs/com/tpl/quick_links_3
  9. +4 −107 docs/dbi/tpl/defaults
  10. +19 −0 docs/dbi/tpl/nav_tabs.html
  11. +11 −0 docs/dbi/tpl/quick_links_3
  12. +2 −2 docs/dev/perl6/index.html
  13. +0 −105 docs/dev/tpl/defaults
  14. +12 −0 docs/dev/tpl/nav_tabs.html
  15. BIN  docs/ldap/Knuellpap.jpg
  16. +11 −15 docs/ldap/index.html
  17. +0 −67 docs/ldap/site.css
  18. +12 −9 docs/ldap/tpl/defaults
  19. +7 −0 docs/ldap/tpl/quick_links_1
  20. +2 −0  docs/ldap/tpl/quick_links_2
  21. +0 −25 docs/ldap/tpl/sidebar.html
  22. +0 −116 docs/ldap/tpl/style/default.html
  23. +0 −106 docs/learn/tpl/defaults
  24. +14 −0 docs/learn/tpl/nav_tabs.html
  25. +8 −0 docs/learn/tpl/sponsor.html
  26. +0 −124 docs/lists/tpl/defaults
  27. +33 −0 docs/lists/tpl/nav_tabs.html
  28. +0 −90 docs/qa/tpl/defaults
  29. +12 −0 docs/qa/tpl/nav_tabs.html
  30. +6 −0 docs/qa/tpl/quick_links_3
  31. +5 −0 docs/shared/nav_tabs
  32. +0 −1  docs/shared/static
  33. +2 −0  docs/shared/tpl/nav_tabs.html
  34. +15 −0 docs/shared/tpl/quick_link_creator
  35. +22 −0 docs/shared/tpl/quick_links_1
  36. +17 −0 docs/shared/tpl/quick_links_2
  37. +19 −0 docs/shared/tpl/quick_links_3
  38. 0  docs/{www → shared}/tpl/sponsor-rotato.html
  39. +1 −0  docs/shared/tpl/sponsor.html
  40. +5 −9 docs/shared/tpl/style/leo.html
  41. +13 −0 docs/shared/tpl/tip
  42. +1 −1  docs/{com/css/site.css → static/css/com.css}
  43. +17 −0 docs/static/css/ldap.css
  44. +1 −1  docs/{learn/css/site.css → static/css/learn.css}
  45. +6 −6 docs/static/css/leostyle.css
  46. +84 −0 docs/static/css/www.css
  47. 0  docs/{shared/i → static/images}/arrow_grey.gif
  48. 0  docs/{shared/i → static/images}/icons/cal.png
  49. 0  docs/{shared/i → static/images}/icons/camel.png
  50. 0  docs/{shared/i → static/images}/icons/cog.png
  51. 0  docs/{shared/i → static/images}/icons/community.png
  52. 0  docs/{shared/i → static/images}/icons/cpan.png
  53. 0  docs/{shared/i → static/images}/icons/cross.png
  54. 0  docs/{shared/i → static/images}/icons/docs.png
  55. 0  docs/{shared/i → static/images}/icons/download.png
  56. 0  docs/{shared/i → static/images}/icons/download_arrow.gif
  57. 0  docs/{shared/i → static/images}/icons/info.png
  58. 0  docs/{shared/i → static/images}/icons/learn.png
  59. 0  docs/{shared/i → static/images}/icons/onion.png
  60. 0  docs/{shared/i → static/images}/icons/perl6.png
  61. 0  docs/{shared/i → static/images}/icons/rss.png
  62. 0  docs/{shared/i → static/images}/icons/star.png
  63. 0  docs/{shared/i → static/images}/icons/tick.png
  64. 0  docs/{shared/i → static/images}/logos/linux.gif
  65. 0  docs/{shared/i → static/images}/logos/mac.gif
  66. 0  docs/{shared/i → static/images}/logos/windows.gif
  67. 0  docs/{shared/i → static/images}/masthead/camel/camel_bg.gif
  68. 0  docs/{shared/i → static/images}/shadow_line.jpg
  69. +16 −22 docs/static/js/leo.js
  70. +2 −0  docs/static/tpl/style/default.html
  71. +0 −84 docs/www/css/site.css
  72. +9 −9 docs/www/get.html
  73. +8 −8 docs/www/index.html
  74. +0 −120 docs/www/tpl/defaults
  75. +27 −0 docs/www/tpl/nav_tabs.html
  76. +8 −0 docs/www/tpl/sponsor.html
  77. +19 −0 lib/PerlOrg/Control/CSS.pm
View
2  .gitignore
@@ -17,6 +17,8 @@ cover_db/
pm_to_blib
blib/
+logs/
+
combust.conf
combust.conf.testing
View
12 README.md
@@ -6,20 +6,20 @@ Sites moved to new perlweb:
- dbi
- debugger
- dev
-- noc
-- qa
-
-Sites still running on old perlweb:
-
- ldap
- learn
- lists
+- noc
- perl4lib
+- qa
- sdl
-- svnaccount
- www
- xml
+Sites still running on old perlweb:
+
+- svnaccount
+
## Clone the source
View
6 apache/conf/sites/static.tmpl
@@ -9,4 +9,10 @@
PerlHandler PerlOrg::Control::Basic
</Location>
+ <Location /css/>
+ SetHandler perl-script
+ PerlHandler PerlOrg::Control::CSS
+ </Location>
+
+
</VirtualHost>
2  combust
@@ -1 +1 @@
-Subproject commit afdf68ca1d945cc04c7f6637dc5796a6afced2a2
+Subproject commit cccbcb2587229d0021236b4ca69a2f2a29fd4c56
View
12 docs/com/download/index.html
@@ -68,15 +68,15 @@
<table class="download_table highlight" cellspacing="0" cellpadding="0" width="100%">
<tr class="download_logos">
<th>Operating system</th>
- <td><img src="/i/logos/linux.gif" class="logo" alt="Unix like..." />Unix like</td>
- <td><img src="/i/logos/mac.gif" class="logo" alt="Mac" />Mac OS X</td>
- <td><img src="/i/logos/windows.gif" class="logo" alt="Windows" />Windows</td>
+ <td><img src="[% combust.static_url("/images/logos/linux.gif") %]" class="logo" alt="Unix like..." />Unix like</td>
+ <td><img src="[% combust.static_url("/images/logos/mac.gif") %]" class="logo" alt="Mac" />Mac OS X</td>
+ <td><img src="[% combust.static_url("/images/logos/windows.gif") %]" class="logo" alt="Windows" />Windows</td>
</tr>
<tr>
<th>Installed?</th>
- <td><img src="/i/icons/tick.png" alt="Included" /> Included</td>
- <td><img src="/i/icons/tick.png" alt="Included" /> Included</td>
- <td><img src="/i/icons/download_arrow.gif" alt="Download Needed"
+ <td><img src="[% combust.static_url("/images/icons/tick.png") %]" alt="Included" /> Included</td>
+ <td><img src="[% combust.static_url("/images/icons/tick.png") %]" alt="Included" /> Included</td>
+ <td><img src="[% combust.static_url("/images/icons/download_arrow.gif") %]" alt="Download Needed"
/> Download Needed</td>
</tr>
</table>
View
138 docs/com/tpl/defaults
@@ -16,6 +16,15 @@
brand => 'com',
};
PROCESS tpl/stats.html;
+
+ page.import({
+ quick_links_1_title => 'Find out more',
+ quick_links_1_list => [
+ '<a href="http://perldoc.perl.org">Documentation</a>',
+ '<a href="http://www.perl.org/">Community: Perl.org</a>',
+ '<a href="http://blogs.perl.org/">Perl Blogs</a>',
+ ],
+ });
SET section_data = {
quick_links_2_title => 'Technical Showcases',
@@ -27,134 +36,5 @@
],
};
-%]
-[%- BLOCK nav_tabs %]
-<ul>
- <li[% ' class="selected"' IF page.section == 'home' %]>
- <a href="/">Home</a>
- </li>
- <li class="[% ' selected' IF page.section == 'download' %]">
- <a href="/download/">Download</a>
- </li>
- <li class="[% ' selected' IF page.section == 'events' %]">
- <a href="/events.html">Events</a>
- </li>
- <li class="[% ' selected' IF page.section == 'articles' %]">
- <a href="/articles/">Articles</a>
- </li>
-
-</ul>
-[% END -%]
-
-[%- BLOCK quick_link_creator %]
-[%-
- IF quick_link_list.size == 0;
- RETURN;
- END;
--%]
-<div class="quick_links">
- <h4 class="round">
- [% quick_link_title %]
- </h4>
- <div class="list">
- [% FOREACH p = quick_link_list %]
- <p>[% p %]</p>
- [% END %]
- </div>
-</div>
-[% END -%]
-[%- BLOCK tip %][% UNLESS tip; RETURN; END; %]
-<div class="quick_links">
- <h4 class="round">
- Tip
- </h4>
- <div class="list">
- <p>
- <strong>[% tip.title %]</strong>
- [% tip.desc %]
- </p>
- </div>
-</div>
-[% END -%]
-
-[%- BLOCK quick_links_1;
-
- SET source = {
- quick_links_1_title => 'Find out more',
- quick_links_1_list => [
- '<a href="http://perldoc.perl.org">Documentation</a>',
- '<a href="http://www.perl.org/">Community: Perl.org</a>',
- '<a href="http://blogs.perl.org/">Perl Blogs</a>',
- ],
- };
-
- IF page.quick_links_1_title;
- source = page;
- ELSIF section_data && section_data.quick_links_1_title;
- source = section_data;
- END;
-
- IF source.quick_links_1_title;
- PROCESS quick_link_creator
- quick_link_title => source.quick_links_1_title,
- quick_link_list => source.quick_links_1_list;
- END;
--%]
-[% END -%]
-[%- BLOCK quick_links_2;
-
- SET source = {};
-
- IF page.quick_links_2_title;
- source = page;
- ELSIF section_data && section_data.quick_links_2_title;
- source = section_data;
- END;
-
- IF source.quick_links_2_title;
- PROCESS quick_link_creator
- quick_link_title => source.quick_links_2_title,
- quick_link_list => source.quick_links_2_list;
- END;
--%]
-[% END -%]
-[%- BLOCK quick_links_3 %]
-
-[%
- asins = [
- '1430223650', # The Definitive Guide to Catalyst
- '1558607013', # Higher-Order Perl
- '1884777791', # Object Oriented Perl
- '0596004761', # Template Toolkit
- '0596001738', # Perl Best Practices
- '0596520107' # Learning Perl
- ];
-%]
-
-[% rand_idx = asins.size.rand %]
-[% asin = asins.$rand_idx %]
-
-<div class="quick_links dbi_book">
- <h4 class="round">
- Sponsor
- </h4>
- <div class="list">
- <p><a href="http://training.perl.com/">Perl Training</a></p>
- </div>
-
-
-<div class="quick_links dbi_book">
- <h4 class="round">
- Perl Books
- </h4>
- <div class="list">
- <p align="center">
- <iframe align="center" src="http://rcm.amazon.com/e/cm?lt1=_blank&bc1=FFFFFF&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=develooper&o=1&p=8&l=as1&m=amazon&f=ifr&asins=[% asin %]" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
- </p>
- </div>
-</div>
-
-
-
-[% END -%]
[% PROCESS tpl/quicknews %]
View
15 docs/com/tpl/nav_tabs.html
@@ -0,0 +1,15 @@
+<ul>
+ <li[% ' class="selected"' IF page.section == 'home' %]>
+ <a href="/">Home</a>
+ </li>
+ <li class="[% ' selected' IF page.section == 'download' %]">
+ <a href="/download/">Download</a>
+ </li>
+ <li class="[% ' selected' IF page.section == 'events' %]">
+ <a href="/events.html">Events</a>
+ </li>
+ <li class="[% ' selected' IF page.section == 'articles' %]">
+ <a href="/articles/">Articles</a>
+ </li>
+
+</ul>
View
34 docs/com/tpl/quick_links_3
@@ -0,0 +1,34 @@
+[%
+ asins = [
+ '1430223650', # The Definitive Guide to Catalyst
+ '1558607013', # Higher-Order Perl
+ '1884777791', # Object Oriented Perl
+ '0596004761', # Template Toolkit
+ '0596001738', # Perl Best Practices
+ '0596520107' # Learning Perl
+ ];
+%]
+
+[% rand_idx = asins.size.rand %]
+[% asin = asins.$rand_idx %]
+
+<div class="quick_links dbi_book">
+ <h4 class="round">
+ Sponsor
+ </h4>
+ <div class="list">
+ <p><a href="http://training.perl.com/">Perl Training</a></p>
+ </div>
+
+
+<div class="quick_links dbi_book">
+ <h4 class="round">
+ Perl Books
+ </h4>
+ <div class="list">
+ <p align="center">
+ <iframe align="center" src="http://rcm.amazon.com/e/cm?lt1=_blank&bc1=FFFFFF&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=develooper&o=1&p=8&l=as1&m=amazon&f=ifr&asins=[% asin %]" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
+ </p>
+ </div>
+</div>
+
View
111 docs/dbi/tpl/defaults
@@ -7,66 +7,8 @@
strap_line => 'When you need <em>Perl</em> think <strong>perl.org</strong>',
crum => '<a href="/">Home</a>',
};
-
- PROCESS tpl/tips.html;
-
--%]
-[%- BLOCK nav_tabs %]
-<ul>
- <li[% ' class="selected"' IF page.section == 'home' %]>
- <a href="/">Home</a>
- </li>
- <li class="[% ' selected' IF page.section == 'about' %]">
- <a href="/about/">About DBI</a>
- </li>
- <li class="[% ' selected' IF page.section == 'docs' %]">
- <a href="/docs/">Documentation</a>
- </li>
-
- <li[% ' class="selected"' IF page.section == 'contribute' %]>
- <a href="/contributing/">Contributing</a>
- </li>
- <li[% ' class="selected"' IF page.section == 'support' %]>
- <a href="/support/">Support</a>
- </li>
-
-</ul>
-[% END -%]
-[%- BLOCK quick_link_creator %]
-[%-
- IF quick_link_list.size == 0;
- RETURN;
- END;
--%]
-<div class="quick_links">
- <h4 class="round">
- [% quick_link_title %]
- </h4>
- <div class="list">
- [% FOREACH p = quick_link_list %]
- <p>[% p %]</p>
- [% END %]
- </div>
-</div>
-[% END -%]
-[%- BLOCK tip %][% UNLESS tip; RETURN; END; %]
-<div class="quick_links">
- <h4 class="round">
- Tip
- </h4>
- <div class="list">
- <p>
- <strong>[% tip.title %]</strong>
- [% tip.desc %]
- </p>
- </div>
-</div>
-[% END -%]
-
-[%- BLOCK quick_links_1;
-
- SET source = {
+ page.import({
quick_links_1_title => 'Find out more',
quick_links_1_list => [
'<a href="http://search.cpan.org/author/TIMB/DBI/">Download latest</a>',
@@ -74,53 +16,8 @@
'<a href="http://search.cpan.org/search?query=DBD%3A%3A&mode=module">Latest DBD modules</a>',
'<a href="http://dbi.tiddlyspot.com/">FAQ</a>',
],
- };
-
- IF page.quick_links_1_title;
- source = page;
- ELSIF section_data && section_data.quick_links_1_title;
- source = section_data;
- END;
-
- IF source.quick_links_1_title;
- PROCESS quick_link_creator
- quick_link_title => source.quick_links_1_title,
- quick_link_list => source.quick_links_1_list;
- END;
--%]
-[% END -%]
-[%- BLOCK quick_links_2;
-
- SET source = {};
-
- IF page.quick_links_2_title;
- source = page;
- ELSIF section_data && section_data.quick_links_2_title;
- source = section_data;
- END;
+ });
+
+ PROCESS tpl/tips.html;
- IF source.quick_links_2_title;
- PROCESS quick_link_creator
- quick_link_title => source.quick_links_2_title,
- quick_link_list => source.quick_links_2_list;
- END;
-%]
-[% END -%]
-[%- BLOCK quick_links_3 %]
-
-<div class="quick_links dbi_book">
- <h4 class="round">
- DBI Book
- </h4>
- <div class="list">
- <p align="center">
- <iframe align="center" src="http://rcm.amazon.com/e/cm?lt1=_blank&bc1=FFFFFF&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=develooper&o=1&p=8&l=as1&m=amazon&f=ifr&asins=1565926994" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
- </p>
-
- </div>
-</div>
-
-
-
-[% END -%]
-
View
19 docs/dbi/tpl/nav_tabs.html
@@ -0,0 +1,19 @@
+<ul>
+ <li[% ' class="selected"' IF page.section == 'home' %]>
+ <a href="/">Home</a>
+ </li>
+ <li class="[% ' selected' IF page.section == 'about' %]">
+ <a href="/about/">About DBI</a>
+ </li>
+ <li class="[% ' selected' IF page.section == 'docs' %]">
+ <a href="/docs/">Documentation</a>
+ </li>
+
+ <li[% ' class="selected"' IF page.section == 'contribute' %]>
+ <a href="/contributing/">Contributing</a>
+ </li>
+ <li[% ' class="selected"' IF page.section == 'support' %]>
+ <a href="/support/">Support</a>
+ </li>
+
+</ul>
View
11 docs/dbi/tpl/quick_links_3
@@ -0,0 +1,11 @@
+<div class="quick_links dbi_book">
+ <h4 class="round">
+ DBI Book
+ </h4>
+ <div class="list">
+ <p align="center">
+ <iframe align="center" src="http://rcm.amazon.com/e/cm?lt1=_blank&bc1=FFFFFF&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=develooper&o=1&p=8&l=as1&m=amazon&f=ifr&asins=1565926994" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
+ </p>
+
+ </div>
+</div>
View
4 docs/dev/perl6/index.html
@@ -13,7 +13,7 @@
<tr>
<td>
<div class="module">
- <a href="http://www.perl6.org/"><img alt="" src="/i/icons/perl6.png" width="45" height="45" /></a>
+ <a href="http://www.perl6.org/"><img alt="" src="[% combust.static_url("/images/icons/perl6.png") %]" width="45" height="45" /></a>
<h4>
<a href="http://www.perl6.org/">Perl 6</a>
</h4>
@@ -27,7 +27,7 @@
<tr>
<td>
<div class="module">
- <a href="http://rakudo.org/how-to-get-rakudo"><img alt="" src="/i/icons/perl6.png" width="45" height="45" /></a>
+ <a href="http://rakudo.org/how-to-get-rakudo"><img alt="" src="[% combust.static_url("/images/icons/perl6.png") %]" width="45" height="45" /></a>
<h4>
<a href="http://rakudo.org/how-to-get-rakudo">Rakudo</a>
</h4>
View
105 docs/dev/tpl/defaults
@@ -12,115 +12,10 @@
# Configuration for this site
SET site = {
name => 'dev.perl.org',
- content_on_right => 1,
};
PROCESS tpl/stats.html;
-
- BLOCK nav_tabs %]
-<ul>
- <li[% ' class="selected"' IF page.section == 'home' %]>
- <a href="/">Home</a>
- </li>
- <li class="[% ' selected' IF page.section == 'perl5' %]">
- <a href="/perl5/">Perl 5</a>
- </li>
- <li class="[% ' selected' IF page.section == 'perl6' %]">
- <a href="/perl6/">Perl 6</a>
- </li>
-
-</ul>
-[% END;
-
- BLOCK quick_link_creator;
-
- IF quick_link_list.size == 0;
- RETURN;
- END;
--%]
-<div class="quick_links">
- <h4 class="round">
- [% quick_link_title %]
- </h4>
- <div class="list">
- [% FOREACH p = quick_link_list %]
- <p>[% p %]</p>
- [% END %]
- </div>
-</div>
-[% END;
- BLOCK tip;
- UNLESS tip; RETURN; END; %]
-
-<div class="quick_links">
- <h4 class="round">
- Tip
- </h4>
- <div class="list">
- <p>
- <strong>[% tip.title %]</strong>
- [% tip.desc %]
- </p>
- </div>
-</div>
-[% END;
-
- BLOCK quick_links_1;
-
- SET source = {};
-
- IF page.quick_links_1_title;
- source = page;
- ELSIF section_data && section_data.quick_links_1_title;
- source = section_data;
- END;
-
- IF source.quick_links_1_title;
- PROCESS quick_link_creator
- quick_link_title => source.quick_links_1_title,
- quick_link_list => source.quick_links_1_list;
- END;
- END;
- BLOCK quick_links_2;
-
- SET source = {};
-
- IF page.quick_links_2_title;
- source = page;
- ELSIF section_data && section_data.quick_links_2_title;
- source = section_data;
- END;
-
- IF source.quick_links_2_title;
- PROCESS quick_link_creator
- quick_link_title => source.quick_links_2_title,
- quick_link_list => source.quick_links_2_list;
- END;
- END;
-
- BLOCK quick_links_3;
-
- SET source = {};
-
- IF page.quick_links_3_title;
- source = page;
- ELSIF section_data && section_data.quick_links_3_title;
- source = section_data;
- END;
-
- IF source.quick_links_3_title;
- PROCESS quick_link_creator
- quick_link_title => source.quick_links_3_title,
- quick_link_list => source.quick_links_3_list;
- END;
-
- END;
-
- IF combust.request.path.match("^/perl1/") ;
- page.site = "perl1";
- END;
-
# don't include any whitespace from here...
RETURN;
-%]
View
12 docs/dev/tpl/nav_tabs.html
@@ -0,0 +1,12 @@
+<ul>
+ <li[% ' class="selected"' IF page.section == 'home' %]>
+ <a href="/">Home</a>
+ </li>
+ <li class="[% ' selected' IF page.section == 'perl5' %]">
+ <a href="/perl5/">Perl 5</a>
+ </li>
+ <li class="[% ' selected' IF page.section == 'perl6' %]">
+ <a href="/perl6/">Perl 6</a>
+ </li>
+
+</ul>
View
BIN  docs/ldap/Knuellpap.jpg
Deleted file not rendered
View
26 docs/ldap/index.html
@@ -1,6 +1,3 @@
-[% page.forcenavigation = 1 %]
-[% page.title = 'Homepage' %]
-[% INCLUDE "tpl/sidebar.html" %]
<div id="content">
<div class="section">
<h2>Introduction</h2>
@@ -187,7 +184,7 @@
<li><a href="http://ltap.bell-labs.com/">LTAP - Lightweight Trigger Access Process</a></li>
</ul>
</div>
- <div class="section">
+ <div class="section books">
<h2>Other Publications</h2>
<p>
@@ -200,7 +197,7 @@
written by Tom Jackiewicz,<BR>
published by <a href="http://www.apress.com/" target="_blank">Apress</a>.<BR>
Mentions Net::LDAP modules
- <br clear=all>
+ <br class="clearall">
<p>
<a href="http://www.perl.org/redirect/?type=book;shop=amazon;isbn=0849313465"
@@ -212,7 +209,7 @@
written by Reinhard Voglmaier,<BR>
published by <a href="http://www.auerbach-publications.com/" target="_blank">Auerbach Pub</a>.<BR>
Provides an introduction to Net::LDAP in its chapter on LDAP APIs
- <br clear=all>
+ <br class="clearall">
<p>
<a href="http://www.perl.org/redirect/?type=book;shop=amazon;isbn=1861002211"
@@ -224,8 +221,7 @@
written by Mark Wilcox,<BR>
published by <a href="http://www.wrox.com/" target="_blank">Wrox Press</a>.<BR>
Mentions perl-ldap in Chapter 11.<BR>
- </div>
- <br clear=all>
+ <br class="clearall">
<p>
<a href="http://www.perl.org/redirect/?type=book;shop=amazon;isbn=1565926099"
@@ -238,7 +234,7 @@
published by <a href= "http://www.oreilly.com/" target="_blank">O'Reilly &amp; Associates</a>.<BR>
Mentions LDAP and perl-ldap
in its chapter on Directory Services.<BR>
- <br clear=all>
+ <br class="clearall">
<p>
<a href="http://www.perl.org/redirect/?type=book;shop=amazon;isbn=0672321254"
@@ -249,7 +245,7 @@
(ISBN: 0672321254)<BR>
written by Robbie Allen and Richard Puckett,<BR>
published by <a href="http://www.awprofessional.com/" target="_blank">Addison-Wesley</a><BR>
- <br clear=all>
+ <br class="clearall">
<p>
<a href="http://www.perl.org/redirect/?type=book;shop=amazon;isbn=1565924916"
@@ -261,7 +257,7 @@
written by Gerald Carter,<BR>
published by <a href="http://www.oreilly.com/" target="_blank">O'Reilly &amp; Associates</a>.<BR>
Has a chapter on Net::LDAP and perl.<BR>
- <br clear=all>
+ <br class="clearall">
<p>
<a href="http://www.perl.org/redirect/?type=book;shop=amazon;isbn=0672323168"
@@ -274,7 +270,7 @@
published by <a href="http://www.awprofessional.com/" target="_blank">Addison-Wesley Professional</a>.<BR>
It only mentions Net::LDAP in passing
but gives good general guidance.<BR>
- <br clear=all>
+ <br class="clearall">
<p>
<a href="http://www.perl.org/redirect/?type=book;shop=amazon;isbn=1578700000"
@@ -285,7 +281,7 @@
(ISBN: 1578700000)<br>
written by Tim Howes, Mark C Smith and Gordon Good,<BR>
published by <a href="http://www.quepublishing.com/" target="_blank">Que</a>.<BR>
- <br clear=all>
+ <br class="clearall">
<p>
<a href="http://www.perl.org/redirect/?type=book;shop=amazon;isbn=1847191029"
@@ -296,7 +292,7 @@
(ISBN: 1847191029)<BR>
written by Matt Butcher, <br>
published by <a href="http://www.packtpub.com/" target="_blank">Packt Publishing</a>.<BR>
- <br clear=all>
+ <br class="clearall">
<p>
<a href="http://www.perl.org/redirect/?type=book;shop=amazon;isbn=020178792X"
@@ -307,7 +303,7 @@
(ISBN: 1847191029)<BR>
written by Brian Arkills,<br>
published by <a href="http://www.awprofessional.com/" target="_blank">Addison-Wesley Professional</a>.<BR>
- <br clear=all>
+ <br class="clearall">
</div>
</div>
View
67 docs/ldap/site.css
@@ -1,67 +0,0 @@
- /* CSS for perl-ldap site */
-
-body,html {
- background-image: url(Knuellpap.jpg);
- padding: 0px;
- font-family:helvetica,sans-serif;
- font-size:14px;
- font-weight:normal;
- width: 730px;
- background-color: #FFF;
-}
-TD.BANNER {
- text-align: center;
- padding: 1ex;
- font-size: 36px;
- font-weight: bold;
-}
-div#banners {
- width: 100px;
- float: left;
- margin-left: 10px;
-}
-div#content {
- padding-right: 20px;
- padding-left: 20px;
- width: auto;
- margin-left: 120px;
-}
-div.section {
- padding: 8px;
- margin-top: 0px;
-}
-div.section h2 {
- border-bottom-width: 1px;
- border-bottom-style: solid;
- border-bottom-color: black;
- font-size: 130%;
-}
-div#banners ul {
- padding-left: 1em;
-}
-p.revision {
- font-size: small;
- font-style: italic;
-}
-a:link {
- color: #005555;
-}
-a:visited {
- color: #AA0000;
-}
-a:active {
- color: #006666;
-}
-div.section h3 {
- font-size: 110%;
-}
-img {
- border: 0px;
-}
-/* for default style */
-.FOOTER {
- font-size: 12px;
- padding-top: 3px;
- border-top:2px solid #191970;
- margin-top: -10px
- }
View
21 docs/ldap/tpl/defaults
@@ -1,17 +1,20 @@
-[%- page = {
- title = template.title,
- style = template.style or 'default.html'
- site = "Perl-LDAP"
- css = "/site.css"
- };
+[%-
+
+ page.import({
+ title => 'Perl LDAP',
+ style => 'leo.html',
+ site => 'Perl-LDAP',
+ });
+
+ SET site = {
+ name => 'ldap.perl.org',
+ };
ldap = {
version = "0.39"
released = "October 2008"
};
- nofooter = 1;
-
# don't include any whitespace from here...
- # RETURN;
+ RETURN;
-%]
View
7 docs/ldap/tpl/quick_links_1
@@ -0,0 +1,7 @@
+<b>Current Release</b> [% ldap.version %]</br>
+<ul>
+<li><a href="http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/perl-ldap-[% ldap.version %].tar.gz">Download</a>
+<li><a href="http://lists.perl.org/showlist.cgi?name=perl-ldap">Mailing List</a>
+<li><a href="http://git.goingon.net/?p=perl-ldap.git">Repository</a>
+<li><a href="http://perl.markmail.org/search/list:perl-ldap">List Archive</a>
+</ul>
View
2  docs/ldap/tpl/quick_links_2
@@ -0,0 +1,2 @@
+<script type="text/javascript" src="http://www.ohloh.net/projects/11786/widgets/project_thin_badge"></script><br>
+<script type="text/javascript" src="http://www.ohloh.net/projects/11786/widgets/project_users_logo"></script>
View
25 docs/ldap/tpl/sidebar.html
@@ -1,25 +0,0 @@
-<div id="banners">
-<b>Current Release:</b> [% ldap.version %]</br>
-<ul>
-<li><a href="http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/perl-ldap-[% ldap.version %].tar.gz">Download</a>
-<li><a href="http://lists.perl.org/showlist.cgi?name=perl-ldap">Mailing List</a>
-<li><a href="http://git.goingon.net/?p=perl-ldap.git">Repository</a>
-<li><a href="http://perl.markmail.org/search/list:perl-ldap">List Archive</a>
-</ul>
-<br><br>
-<script type="text/javascript" src="http://www.ohloh.net/projects/11786/widgets/project_thin_badge"></script><br>
-<script type="text/javascript" src="http://www.ohloh.net/projects/11786/widgets/project_users_logo"></script>
-<br><br>
-<script type="text/javascript">
-<!--
-google_ad_client = 'pub-5551869059240207';
-google_ad_width = 120;
-google_ad_height = 600;
-google_ad_format = "120x600_as";
-// -->
-</script>
-<script type="text/javascript"
- src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
-</script>
-</div>
-
View
116 docs/ldap/tpl/style/default.html
@@ -1,116 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-
-[%
- title = page.title || template.title;
-
- IF page.bhead;
- page.banner = page.bhead _ '<SPAN CLASS="title">' _ page.banner _ "</span>";
- END;
-
- IF !page.site;
- page.site = "perl.org";
- END;
-
- UNLESS page.banner;
- # should we make use of page.site here? i.e. "dbi.perl.org: "
- page.banner = page.site _ ': <SPAN CLASS="title">' _ title _ "</span>";
- END;
-
-
- IF title;
- page.title = "${title} - ${page.site}";
- ELSE;
- page.title = "${page.site}";
- END;
-
- # is this intentionally all indexes or should it just be the most
- # top level one?
- isindex = combust.request.path.match('^/(index.html)?$');
-
-%]
-
-<html>
-<head>
- <title>[% page.title %]</title>
- <link rel="stylesheet" type="text/css" href="[% page.css || combust.static_url("css/perl.css") %]" title="Default CSS2" media="screen">
- <link rel="shortcut icon" href="[% page.favicon || "/favicon.ico" %]">
- <meta name="keywords" content="perl,LDAP,Net::LDAP,perl-ldap">
- <meta name="description" content="perl-ldap the LDAP library for Perl">
-</head>
-<body>
-
-<TABLE CELLSPACING="0" WIDTH="730">
-<TR>
-<TD WIDTH="100%" COLSPAN="2" class="BANNER">[% page.banner %]</TD>
-</TR>
-
-[% IF page.sidebar %]
-<TR>
-<TD WIDTH="100%" COLSPAN="2" ID="NAV" style="border-bottom: 1px solid #191970;">
-[% page.sidebar %]
-</TD>
-</TR>
-[% END %]
-</TABLE>
-
-[% IF isindex %]
-<DIV ID="MAIN">
-[% END %]
-
-[% content %]
-
-[% UNLESS !isindex %]
-</DIV>
-[% END %]
-
-
-[% UNLESS nofooter %]
-<P>
-<TABLE border="0" WIDTH="730" CELLSPACING="0" CELLPADDING="0">
-<TR ALIGN="RIGHT">
-
-<TD WIDTH="590" VALIGN="MIDDLE">
-<BR>
-
-<DIV CLASS="FOOTER">
-[% UNLESS shortfooter || page.footer %]
- <A HREF="/">Perl.org</A> sites
- : <!-- <A href="http://books.perl.org/" title="books.perl.org">books</a>
- | --> <A href="http://rt.perl.org/perlbug/">bugs</a>
- | <A href="http://dev.perl.org/">dev</a>
- | <A href="http://history.perl.org/">history</a>
- | <A href="http://jobs.perl.org/">jobs</a>
- | <A href="http://learn.perl.org/">learn</a>
- | <A href="http://lists.perl.org/">lists</a>
- | <A href="http://use.perl.org/">use</a>
- <BR>
- <small>
- &#169; Copyright 2002-2003 <a href="http://www.perlfoundation.org">The&nbsp;Perl&nbsp;Foundation</a><BR>
- <A HREF="[% page.siteinfo || "http://www.perl.org/siteinfo.html" %]"
- >Site Information and Contacts</A>
- </small>
-[% ELSIF page.footer %]
-[% page.footer %]
-[% ELSE %]
-&nbsp;
-[% END %]
-
-</DIV>
-</TD>
-<TD valign="middle" align="center">
-[% IF page.logobutton %]
-<img src="[% page.logobutton.src %]" alt="[% page.logobutton.alt %]">
-[% ELSE %]
-<img src="[% combust.static_url("/images/lcamel.gif") %]" alt="the camel">
-[% END %]
-</TD>
-</TR>
-</TABLE>
-
-[% END %]
-
-</body>
-</html>
-
-
-
View
106 docs/learn/tpl/defaults
@@ -11,115 +11,9 @@
PROCESS tpl/stats.html;
PROCESS tpl/tips.html;
-%]
-[%- BLOCK nav_tabs %]
-<ul>
- <li[% ' class="selected"' IF page.section == 'home' %]>
- <a href="/">Home</a>
- </li>
- <li[% ' class="selected"' IF page.section == 'books' %]>
- <a href="/books.html">Books</a>
- </li>
- <li[% ' class="selected"' IF page.section == 'tutorials' %]>
- <a href="/tutorials/">Tutorials</a>
- </li>
- <li[% ' class="selected"' IF page.section == 'faq' %]>
- <a href="/faq/">FAQ</a>
- </li>
-</ul>
-[% END -%]
-[%- BLOCK quick_link_creator %]
-[%-
- IF quick_link_list.size == 0;
- RETURN;
- END;
--%]
-<div class="quick_links">
- <h4 class="round">
- [% quick_link_title %]
- </h4>
- <div class="list">
- [% FOREACH p = quick_link_list %]
- <p>[% p %]</p>
- [% END %]
- </div>
-</div>
-[% END -%]
-[%- BLOCK tip %]
-<div class="quick_links">
- <h4 class="round">
- Tip
- </h4>
- <div class="list">
- <p>
- <strong>[% tip.title %]</strong>
- [% tip.desc %]
- </p>
- </div>
-</div>
-[% END -%]
-
-[%- BLOCK quick_links_1;
-
- SET source = {};
-
- IF page.quick_links_1_title;
- source = page;
- ELSIF section_data && section_data.quick_links_1_title;
- source = section_data;
- END;
-
- IF source.quick_links_1_title;
- PROCESS quick_link_creator
- quick_link_title => source.quick_links_1_title,
- quick_link_list => source.quick_links_1_list;
- END;
--%]
-[% END -%]
-[%- BLOCK quick_links_2;
-
- SET source = {};
-
- IF page.quick_links_2_title;
- source = page;
- ELSIF section_data && section_data.quick_links_2_title;
- source = section_data;
- END;
-
- IF source.quick_links_2_title;
- PROCESS quick_link_creator
- quick_link_title => source.quick_links_2_title,
- quick_link_list => source.quick_links_2_list;
- END;
--%]
-[% END -%]
-[%- BLOCK quick_links_3;
-
- SET source = {};
-
- IF page.quick_links_3_title;
- source = page;
- ELSIF section_data && section_data.quick_links_3_title;
- source = section_data;
- END;
-
- IF source.quick_links_3_title;
- PROCESS quick_link_creator
- quick_link_title => source.quick_links_3_title,
- quick_link_list => source.quick_links_3_list;
- END;
--%]
-[% END -%]
[%- section_crum = {
'home' => '',
'about' => '<a href="/about.html">About Perl</a>',
} -%]
[%- BLOCK sponsor %]
-<div id="sponsor">
- <h4>
- <a href="siteinfo.html#sponsors">Sponsor</a>
- </h4>
- <p>
- [% PROCESS "tpl/sponsor-rotato.html" rotato_image_base => 'http://st.pimg.net/www.perl.org' %]
- </p>
-</div>
[% END -%]
View
14 docs/learn/tpl/nav_tabs.html
@@ -0,0 +1,14 @@
+<ul>
+ <li[% ' class="selected"' IF page.section == 'home' %]>
+ <a href="/">Home</a>
+ </li>
+ <li[% ' class="selected"' IF page.section == 'books' %]>
+ <a href="/books.html">Books</a>
+ </li>
+ <li[% ' class="selected"' IF page.section == 'tutorials' %]>
+ <a href="/tutorials/">Tutorials</a>
+ </li>
+ <li[% ' class="selected"' IF page.section == 'faq' %]>
+ <a href="/faq/">FAQ</a>
+ </li>
+</ul>
View
8 docs/learn/tpl/sponsor.html
@@ -0,0 +1,8 @@
+<div id="sponsor">
+ <h4>
+ <a href="siteinfo.html#sponsors">Sponsor</a>
+ </h4>
+ <p>
+ [% PROCESS "tpl/sponsor-rotato.html" rotato_image_base => 'http://st.pimg.net/www.perl.org' %]
+ </p>
+</div>
View
124 docs/lists/tpl/defaults
@@ -15,128 +15,4 @@
lists = JSON.json_decode(json_string);
END;
-%]
-[%- BLOCK nav_tabs %]
-<ul>
- <li[% ' class="selected"' IF page.section == 'home' %]>
- <a href="/">Home</a>
- </li>
- <li[% ' class="selected"' IF page.section == 'beginners' %]>
- <a href="/tag/beginners.html">Beginners</a>
- </li>
- <li[% ' class="selected"' IF page.section == 'os' %]>
- <a href="/tag/os.html">OS</a>
- </li>
- <li[% ' class="selected"' IF page.section == 'db' %]>
- <a href="/tag/db.html">DB</a>
- </li>
- <li[% ' class="selected"' IF page.section == 'modules' %]>
- <a href="/tag/modules.html">Modules</a>
- </li>
- <li[% ' class="selected"' IF page.section == 'community' %]>
- <a href="/tag/community.html">community</a>
- </li>
- <li[% ' class="selected"' IF page.section == 'web' %]>
- <a href="/tag/web.html">Web</a>
- </li>
- <li[% ' class="selected"' IF page.section == 'science' %]>
- <a href="/tag/science.html">Science</a>
- </li>
- <li[% ' class="selected"' IF page.section == 'internals' %]>
- <a href="/tag/internals.html">Internals</a>
- </li>
- <li[% ' class="selected"' IF page.section == 'more' %]>
- <a href="/all.html">More</a>
- </li>
-</ul>
-[% END -%]
-
-[%- BLOCK quick_link_creator %]
-[%-
- IF quick_link_list.size == 0;
- RETURN;
- END;
--%]
-<div class="quick_links">
- <h4 class="round">
- [% quick_link_title %]
- </h4>
- <div class="list">
- [% FOREACH p = quick_link_list %]
- <p>[% p %]</p>
- [% END %]
- </div>
-</div>
-[% END -%]
-[%- BLOCK tip %][% UNLESS tip; RETURN; END; %]
-<div class="quick_links">
- <h4 class="round">
- Tip
- </h4>
- <div class="list">
- <p>
- <strong>[% tip.title %]</strong>
- [% tip.desc %]
- </p>
- </div>
-</div>
-[% END -%]
-
-[%- BLOCK quick_links_1;
-
- SET source = {};
-
-# SET source = {
-# quick_links_1_title => 'Related sites',
-# quick_links_1_list => [
-# '<a href="http://www.perl.org">Perl.org</a>',
-# ],
-# };
-
- IF page.quick_links_1_title;
- source = page;
- ELSIF section_data && section_data.quick_links_1_title;
- source = section_data;
- END;
-
- IF source.quick_links_1_title;
- PROCESS quick_link_creator
- quick_link_title => source.quick_links_1_title,
- quick_link_list => source.quick_links_1_list;
- END;
--%]
-[% END -%]
-[%- BLOCK quick_links_2;
-
- SET source = {};
-
- IF page.quick_links_2_title;
- source = page;
- ELSIF section_data && section_data.quick_links_2_title;
- source = section_data;
- END;
-
- IF source.quick_links_2_title;
- PROCESS quick_link_creator
- quick_link_title => source.quick_links_2_title,
- quick_link_list => source.quick_links_2_list;
- END;
--%]
-[% END -%]
-[%- BLOCK quick_links_3;
-
- SET source = {};
-
- IF page.quick_links_3_title;
- source = page;
- ELSIF section_data && section_data.quick_links_3_title;
- source = section_data;
- END;
-
- IF source.quick_links_3_title;
- PROCESS quick_link_creator
- quick_link_title => source.quick_links_3_title,
- quick_link_list => source.quick_links_3_list;
- END;
--%]
-[% END -%]
View
33 docs/lists/tpl/nav_tabs.html
@@ -0,0 +1,33 @@
+<ul>
+ <li[% ' class="selected"' IF page.section == 'home' %]>
+ <a href="/">Home</a>
+ </li>
+ <li[% ' class="selected"' IF page.section == 'beginners' %]>
+ <a href="/tag/beginners.html">Beginners</a>
+ </li>
+ <li[% ' class="selected"' IF page.section == 'os' %]>
+ <a href="/tag/os.html">OS</a>
+ </li>
+ <li[% ' class="selected"' IF page.section == 'db' %]>
+ <a href="/tag/db.html">DB</a>
+ </li>
+ <li[% ' class="selected"' IF page.section == 'modules' %]>
+ <a href="/tag/modules.html">Modules</a>
+ </li>
+ <li[% ' class="selected"' IF page.section == 'community' %]>
+ <a href="/tag/community.html">community</a>
+ </li>
+ <li[% ' class="selected"' IF page.section == 'web' %]>
+ <a href="/tag/web.html">Web</a>
+ </li>
+ <li[% ' class="selected"' IF page.section == 'science' %]>
+ <a href="/tag/science.html">Science</a>
+ </li>
+ <li[% ' class="selected"' IF page.section == 'internals' %]>
+ <a href="/tag/internals.html">Internals</a>
+ </li>
+ <li[% ' class="selected"' IF page.section == 'more' %]>
+ <a href="/all.html">More</a>
+ </li>
+
+</ul>
View
90 docs/qa/tpl/defaults
@@ -11,96 +11,6 @@
PROCESS tpl/stats.html;
- BLOCK nav_tabs %]
-<ul>
- <li[% ' class="selected"' IF page.section == 'home' %]>
- <a href="/">Home</a>
- </li>
- <li class="[% ' selected' IF page.section == 'testing' %]"><a href="/testing/">Testing your code</a></li>
- <li class="[% ' selected' IF page.section == 'cpan' %]"><a href="/cpan-testers/">Testing CPAN &amp; Perl</a></li>
-
-
- <li class="sub[% ' selected' IF page.section == 'phalanx' %]">
- <a href="/phalanx/">Inactive projects</a></li>
-
-</ul>
-[% END;
-
- BLOCK quick_link_creator;
- IF quick_link_list.size == 0;
- RETURN;
- END;
--%]
-<div class="quick_links">
- <h4 class="round">
- [% quick_link_title %]
- </h4>
- <div class="list">
- [% FOREACH p = quick_link_list %]
- <p>[% p %]</p>
- [% END %]
- </div>
-</div>
-[% END -%]
-[%- BLOCK tip %][% UNLESS tip; RETURN; END; %]
-<div class="quick_links">
- <h4 class="round">
- Tip
- </h4>
- <div class="list">
- <p>
- <strong>[% tip.title %]</strong>
- [% tip.desc %]
- </p>
- </div>
-</div>
-[% END -%]
-
-[%- BLOCK quick_links_1;
-
- SET source = {};
-
- IF page.quick_links_1_title;
- source = page;
- ELSIF section_data && section_data.quick_links_1_title;
- source = section_data;
- END;
-
- IF source.quick_links_1_title;
- PROCESS quick_link_creator
- quick_link_title => source.quick_links_1_title,
- quick_link_list => source.quick_links_1_list;
- END;
--%]
-[% END -%]
-[%- BLOCK quick_links_2;
-
- SET source = {};
-
- IF page.quick_links_2_title;
- source = page;
- ELSIF section_data && section_data.quick_links_2_title;
- source = section_data;
- END;
-
- IF source.quick_links_2_title;
- PROCESS quick_link_creator
- quick_link_title => source.quick_links_2_title,
- quick_link_list => source.quick_links_2_list;
- END;
--%]
-[% END -%]
-[%- BLOCK quick_links_3 %]
-
-<div id="sponsor">
-
-<p>
- <img alt="[QA]" src="/images/qa.png" width="150" height="150" align="middle" />
-</p>
-</div>
-
-[% END;
-
# don't include any whitespace from here...
RETURN;
View
12 docs/qa/tpl/nav_tabs.html
@@ -0,0 +1,12 @@
+<ul>
+ <li[% ' class="selected"' IF page.section == 'home' %]>
+ <a href="/">Home</a>
+ </li>
+ <li class="[% ' selected' IF page.section == 'testing' %]"><a href="/testing/">Testing your code</a></li>
+ <li class="[% ' selected' IF page.section == 'cpan' %]"><a href="/cpan-testers/">Testing CPAN &amp; Perl</a></li>
+
+
+ <li class="sub[% ' selected' IF page.section == 'phalanx' %]">
+ <a href="/phalanx/">Inactive projects</a></li>
+
+</ul>
View
6 docs/qa/tpl/quick_links_3
@@ -0,0 +1,6 @@
+<div id="sponsor">
+
+<p>
+ <img alt="[QA]" src="/images/qa.png" width="150" height="150" align="middle" />
+</p>
+</div>
View
5 docs/shared/nav_tabs
@@ -0,0 +1,5 @@
+[%
+ # because this used to be / is also a BLOCK name, but
+ # we want to put the template into tpl/...
+ PROCESS tpl/nav_tabs.html;
+-%]
View
1  docs/shared/static
View
2  docs/shared/tpl/nav_tabs.html
@@ -0,0 +1,2 @@
+[% # defaults to empty %]
+
View
15 docs/shared/tpl/quick_link_creator
@@ -0,0 +1,15 @@
+[%
+ IF quick_link_list.size == 0;
+ RETURN;
+ END;
+-%]
+<div class="quick_links">
+ <h4 class="round">
+ [% quick_link_title %]
+ </h4>
+ <div class="list">
+ [% FOREACH p = quick_link_list %]
+ <p>[% p %]</p>
+ [% END %]
+ </div>
+</div>
View
22 docs/shared/tpl/quick_links_1
@@ -0,0 +1,22 @@
+[%
+ SET source = {};
+
+# SET source = {
+# quick_links_1_title => 'Related sites',
+# quick_links_1_list => [
+# '<a href="http://www.perl.org">Perl.org</a>',
+# ],
+# };
+
+ IF page.quick_links_1_title;
+ source = page;
+ ELSIF section_data && section_data.quick_links_1_title;
+ source = section_data;
+ END;
+
+ IF source.quick_links_1_title;
+ PROCESS tpl/quick_link_creator
+ quick_link_title => source.quick_links_1_title,
+ quick_link_list => source.quick_links_1_list;
+ END;
+%]
View
17 docs/shared/tpl/quick_links_2
@@ -0,0 +1,17 @@
+[%
+
+ SET source = {};
+
+ IF page.quick_links_2_title;
+ source = page;
+ ELSIF section_data && section_data.quick_links_2_title;
+ source = section_data;
+ END;
+
+ IF source.quick_links_2_title;
+ PROCESS tpl/quick_link_creator
+ quick_link_title => source.quick_links_2_title,
+ quick_link_list => source.quick_links_2_list;
+ END;
+
+%]
View
19 docs/shared/tpl/quick_links_3
@@ -0,0 +1,19 @@
+[%
+ BLOCK quick_links_3;
+
+ SET source = {};
+
+ IF page.quick_links_3_title;
+ source = page;
+ ELSIF section_data && section_data.quick_links_3_title;
+ source = section_data;
+ END;
+
+ IF source.quick_links_3_title;
+ PROCESS tpl/quick_link_creator
+ quick_link_title => source.quick_links_3_title,
+ quick_link_list => source.quick_links_3_list;
+ END;
+
+ END;
+%]
View
0  docs/www/tpl/sponsor-rotato.html → docs/shared/tpl/sponsor-rotato.html
File renamed without changes
View
1  docs/shared/tpl/sponsor.html
@@ -0,0 +1 @@
+[% # intentionally left blank %]
View
14 docs/shared/tpl/style/leo.html
@@ -66,15 +66,11 @@
[% content %]
</div>
<div id="short_lists" class="short_lists">
- [% INCLUDE quick_links_1 %]
- [% INCLUDE quick_links_2 %]
- [% INCLUDE quick_links_3 %]
- [% IF page.include_sponsor %]
- [% INCLUDE sponsor %]
- [% ELSE %]
- [% INCLUDE tip %]
- [% END %]
-
+ [% INCLUDE tpl/quick_links_1 %]
+ [% INCLUDE tpl/quick_links_2 %]
+ [% INCLUDE tpl/quick_links_3 %]
+ [% INCLUDE tpl/tip %]
+ [% INCLUDE tpl/sponsor.html %]
<div id="spacer_for_google"></div>
View
13 docs/shared/tpl/tip
@@ -0,0 +1,13 @@
+[% UNLESS tip; RETURN; END; %]
+<div class="quick_links">
+ <h4 class="round">
+ Tip
+ </h4>
+ <div class="list">
+ <p>
+ <strong>[% tip.title %]</strong>
+ [% tip.desc %]
+ </p>
+ </div>
+</div>
+
View
2  docs/com/css/site.css → docs/static/css/com.css
@@ -10,7 +10,7 @@
}
#nav {
- background: #004065 url(/i/tab_bg.gif) repeat-x left 4px;
+ background: #004065 url([% combust.static_url("/images/tab_bg.gif") %]) repeat-x left 4px;
}
.masthead .strap{
View
17 docs/static/css/ldap.css
@@ -0,0 +1,17 @@
+ /* CSS for perl-ldap site */
+
+
+div#banners {
+ width: 150px;
+ float: right;
+ margin-top: 45px;
+ margin-left: 30px;
+ margin-right: 10px;
+ margin-bottom: 50px;
+}
+
+div.books p {
+ margin-bottom: 15px;
+}
+
+br.clearall { clear: both }
View
2  docs/learn/css/site.css → docs/static/css/learn.css
@@ -37,5 +37,5 @@
/* @group Not used */
#page_image {
- background: transparent url(/i/icons/learn.png) no-repeat left top;
+ background: transparent url([% combust.static_url("/images/icons/learn.png") %]) no-repeat left top;
}
View
12 docs/static/css/leostyle.css
@@ -32,7 +32,7 @@ h2 {
margin: 0;
margin-bottom: 8px;
font-weight: 600;
- border-bottom: 1px groove #76a1da;
+ border-bottom: 1px solid #76a1da;
}
h4 {
@@ -149,7 +149,7 @@ div p {
color: #999999;
padding-right: 15px;
margin-right: 8px;
- background: transparent url(/i/arrow_grey.gif) no-repeat center right;
+ background: transparent url([% combust.static_url("/images/arrow_grey.gif") %]) no-repeat center right;
}
/* @end */
@@ -285,7 +285,7 @@ div p {
.masthead {
margin: 0px 0 13px 0;
padding:32px 20px 10px 20px;
- background:#f0f0f0 url(/i/masthead/camel/camel_bg.gif) no-repeat right top;
+ background:#f0f0f0 url([% combust.static_url("/images/masthead/camel/camel_bg.gif") %]) no-repeat right top;
}
.masthead .headline{
width:500px;
@@ -307,7 +307,7 @@ div p {
float:right !important;
}
.cta{
- background:transparent url(/i/arrow_grey.gif) no-repeat left center;
+ background:transparent url([% combust.static_url("/images/arrow_grey.gif") %]) no-repeat left center;
padding-left:12px;
}
/* @end */
@@ -421,7 +421,7 @@ div p {
/* @group Content modules */
.module {
- background: transparent url(/i/shadow_line.jpg) repeat-x;
+ background: transparent url([% combust.static_url("/images/shadow_line.jpg") %]) repeat-x;
padding: 10px;
}
@@ -464,7 +464,7 @@ div p {
text-transform:uppercase;
text-decoration:none;
font-size:120%;
- background:transparent url(/i/icons/download_arrow.gif) no-repeat left center;
+ background:transparent url([% combust.static_url("/images/icons/download_arrow.gif") %]) no-repeat left center;
}
.button a:hover{
text-decoration:underline;
View
84 docs/static/css/www.css
@@ -0,0 +1,84 @@
+/* Site specific css */
+
+/* @group Book lists */
+
+.book {
+ float: left;
+ width: 100%;
+ border-top: 1px solid #b8b8b8;
+ margin-top: 15px;
+ padding-top: 15px;
+}
+
+.book .title {
+ font: 120% Verdana, Arial, sans-serif;
+}
+
+.book .author {
+ font-size: 80%;
+}
+
+.book .description {
+ font-size: 80%;
+ width: 70%;
+}
+
+.book .buy {
+ font-size: 80%;
+}
+
+.book .amazon {
+ float: right;
+ width: auto;
+}
+
+/* @end */
+
+/* @group Not used */
+
+.section_home #page_image {
+ background: transparent url([% combust.static_url("/images/icons/camel.png") %]) no-repeat left top;
+}
+
+.section_about #page_image {
+ background: transparent url([% combust.static_url("/images/icons/info.png") %]) no-repeat left top;
+}
+
+.section_docs #page_image {
+ background: transparent url([% combust.static_url("/images/icons/docs.png") %]) no-repeat left top;
+}
+
+.section_events #page_image {
+ background: transparent url([% combust.static_url("/images/icons/cal.png") %]) no-repeat left top;
+}
+
+.section_learn #page_image {
+ background: transparent url([% combust.static_url("/images/icons/learn.png") %]) no-repeat left top;
+}
+
+.section_blogs #page_image {
+ background: transparent url([% combust.static_url("/images/icons/rss.png") %]) no-repeat left top;
+}
+
+.section_cpan #page_image {
+ background: transparent url([% combust.static_url("/images/icons/cpan.png") %]) no-repeat left top;
+}
+
+.section_community #page_image {
+ background: transparent url([% combust.static_url("/images/icons/community.png") %]) no-repeat left top;
+}
+
+.section_contribute #page_image {
+ background: transparent url([% combust.static_url("/images/icons/cog.png") %]) no-repeat left top;
+}
+
+.section_download #page_image {
+ background: transparent url([% combust.static_url("/images/icons/download.png") %]) no-repeat left top;
+}
+
+/* @end */
+
+.section_cpan li.rss_content {
+ float: left;
+ width: 300px;
+}
View
0  docs/shared/i/arrow_grey.gif → docs/static/images/arrow_grey.gif
File renamed without changes
View
0  docs/shared/i/icons/cal.png → docs/static/images/icons/cal.png
File renamed without changes
View
0  docs/shared/i/icons/camel.png → docs/static/images/icons/camel.png
File renamed without changes
View
0  docs/shared/i/icons/cog.png → docs/static/images/icons/cog.png
File renamed without changes
View
0  docs/shared/i/icons/community.png → docs/static/images/icons/community.png
File renamed without changes
View
0  docs/shared/i/icons/cpan.png → docs/static/images/icons/cpan.png
File renamed without changes
View
0  docs/shared/i/icons/cross.png → docs/static/images/icons/cross.png
File renamed without changes
View
0  docs/shared/i/icons/docs.png → docs/static/images/icons/docs.png
File renamed without changes
View
0  docs/shared/i/icons/download.png → docs/static/images/icons/download.png
File renamed without changes
View
0  docs/shared/i/icons/download_arrow.gif → docs/static/images/icons/download_arrow.gif
File renamed without changes
View
0  docs/shared/i/icons/info.png → docs/static/images/icons/info.png
File renamed without changes
View
0  docs/shared/i/icons/learn.png → docs/static/images/icons/learn.png
File renamed without changes
View
0  docs/shared/i/icons/onion.png → docs/static/images/icons/onion.png
File renamed without changes
View
0  docs/shared/i/icons/perl6.png → docs/static/images/icons/perl6.png
File renamed without changes
View
0  docs/shared/i/icons/rss.png → docs/static/images/icons/rss.png
File renamed without changes
View
0  docs/shared/i/icons/star.png → docs/static/images/icons/star.png
File renamed without changes
View
0  docs/shared/i/icons/tick.png → docs/static/images/icons/tick.png
File renamed without changes
View
0  docs/shared/i/logos/linux.gif → docs/static/images/logos/linux.gif
File renamed without changes
View
0  docs/shared/i/logos/mac.gif → docs/static/images/logos/mac.gif
File renamed without changes
View
0  docs/shared/i/logos/windows.gif → docs/static/images/logos/windows.gif
File renamed without changes
View
0  docs/shared/i/masthead/camel/camel_bg.gif → ...static/images/masthead/camel/camel_bg.gif
File renamed without changes
View
0  docs/shared/i/shadow_line.jpg → docs/static/images/shadow_line.jpg
File renamed without changes
View
38 docs/static/js/leo.js
@@ -5,39 +5,33 @@ $(document).ready(function(){
// $('.ext').filter(function(obj) {
// this.target="_blank";
// return 1;
- // }).after(' <img src="/i/external.png" alt="external link"/>');
- //
+ // }).after(' <img src="/i/external.v1.png" alt="external link"/>');
+ //
// $("a:not(img)").filter(function(obj) {
// this.target="_blank";
// return 1;
- // }).after(' <img src="/i/external.png" alt="external link"/>');
- //
-
-
- $('#content a').filter(function() {
+ // }).after(' <img src="/i/external.v1.png" alt="external link"/>');
+ //
+
+ var link_filter = function() {
// If it's an image, do NOT show icon
if($(this).find('img').length)
return 0;
+ // some widgets get an image via CSS
+ if( $(this).html().length == 0) {
+ return 0;
+ }
// If it's external, ok
if(this.hostname && this.hostname !== location.hostname) {
this.target="_blank";
- return 1;
+ $(this).after('<img class="extlink" src="/i/external.v1.png" alt="external link"/>');
}
return 0;
- }).after('<img class="extlink" src="/i/external.png" alt="external link"/>');
-
- $('#footer a').filter(function() {
- // If it's an image, do NOT show icon
- if($(this).find('img').length)
- return 0;
- // If it's external, ok
- if(this.hostname && this.hostname !== location.hostname) {
- this.target="_blank";
- return 1;
- }
- return 0;
- }).after('<img class="extlink" src="/i/external.png" alt="external link"/>');
-
+ };
+
+ $('#content a').filter(link_filter);
+ $('#footer a').filter(link_filter);
+
$('.round').corner("7px top");
$('.module').corner("10px top");
//$('.button').corner("7px");
View
2  docs/static/tpl/style/default.html
@@ -0,0 +1,2 @@
+[% content %]
+
View
84 docs/www/css/site.css
@@ -1,84 +0,0 @@
-/* Site specific css */
-
-/* @group Book lists */
-
-.book {
- float: left;
- width: 100%;
- border-top: 1px solid #b8b8b8;
- margin-top: 15px;
- padding-top: 15px;
-}
-
-.book .title {
- font: 120% Verdana, Arial, sans-serif;
-}
-
-.book .author {
- font-size: 80%;
-}
-
-.book .description {
- font-size: 80%;
- width: 70%;
-}
-
-.book .buy {
- font-size: 80%;
-}
-
-.book .amazon {
- float: right;
- width: auto;
-}
-
-/* @end */
-
-/* @group Not used */
-
-.section_home #page_image {
- background: transparent url(/i/icons/camel.png) no-repeat left top;
-}
-
-.section_about #page_image {
- background: transparent url(/i/icons/info.png) no-repeat left top;
-}
-
-.section_docs #page_image {
- background: transparent url(/i/icons/docs.png) no-repeat left top;
-}
-
-.section_events #page_image {
- background: transparent url(/i/icons/cal.png) no-repeat left top;
-}
-
-.section_learn #page_image {
- background: transparent url(/i/icons/learn.png) no-repeat left top;
-}
-
-.section_blogs #page_image {
- background: transparent url(/i/icons/rss.png) no-repeat left top;
-}
-
-.section_cpan #page_image {
- background: transparent url(/i/icons/cpan.png) no-repeat left top;
-}
-
-.section_community #page_image {
- background: transparent url(/i/icons/community.png) no-repeat left top;
-}
-
-.section_contribute #page_image {
- background: transparent url(/i/icons/cog.png) no-repeat left top;
-}
-
-.section_download #page_image {
- background: transparent url(/i/icons/download.png) no-repeat left top;
-}
-
-/* @end */
-
-.section_cpan li.rss_content {
- float: left;
- width: 300px;
-}
View
18 docs/www/get.html
@@ -91,16 +91,16 @@
</style>
<table class="download_table highlight" cellspacing="0" cellpadding="0" width="100%">
<tr class="download_logos">
- <td><a href="#unix_like"><img src="/i/logos/linux.gif" class="logo" alt="Unix/Linux" /><br>Unix/Linux</a></td>
- <td><a href="#osx"><img src="/i/logos/mac.gif" class="logo" alt="Mac" /><br>Mac OS X</a></td>
- <td><a href="#win32"><img src="/i/logos/windows.gif" class="logo" alt="Windows" /><br>Windows</a></td>
+ <td><a href="#unix_like"><img src="[% combust.static_url("/images/logos/linux.gif") %]" class="logo" alt="Unix/Linux" /><br>Unix/Linux</a></td>
+ <td><a href="#osx"><img src="[% combust.static_url("/images/logos/mac.gif") %]" class="logo" alt="Mac" /><br>Mac OS X</a></td>
+ <td><a href="#win32"><img src="[% combust.static_url("/images/logos/windows.gif") %]" class="logo" alt="Windows" /><br>Windows</a></td>
</tr>
<tr>
- <td><img src="/i/icons/tick.png" alt="Included" /> Included<br /><small>(may not be latest)</small></td>
- <td><img src="/i/icons/tick.png" alt="Included" /> Included<br /><small>(may not be latest)</small></td>
+ <td><img src="[% combust.static_url("/images/icons/tick.png") %]" alt="Included" /> Included<br /><small>(may not be latest)</small></td>
+ <td><img src="[% combust.static_url("/images/icons/tick.png") %]" alt="Included" /> Included<br /><small>(may not be latest)</small></td>
<td>
- <a href="http://strawberryperl.com" class="download" title="Strawberry Perl"><img src="/i/icons/download_arrow.gif" alt="Download Needed" /></a><a href="http://strawberryperl.com" class="download" title="Strawberry Perl">Strawberry Perl</a><br />
- <a href="http://www.activestate.com/activeperl/downloads" class="download" title="ActiveState Perl"><img src="/i/icons/download_arrow.gif" alt="Download Needed" /></a><a href="http://www.activestate.com/activeperl/downloads" class="download" title="ActiveState Perl">ActiveState Perl</a>
+ <a href="http://strawberryperl.com" class="download" title="Strawberry Perl"><img src="[% combust.static_url("/images/icons/download_arrow.gif") %]" alt="Download Needed" /></a><a href="http://strawberryperl.com" class="download" title="Strawberry Perl">Strawberry Perl</a><br />
+ <a href="http://www.activestate.com/activeperl/downloads" class="download" title="ActiveState Perl"><img src="[% combust.static_url("/images/icons/download_arrow.gif") %]" alt="Download Needed" /></a><a href="http://www.activestate.com/activeperl/downloads" class="download" title="ActiveState Perl">ActiveState Perl</a>
</td>
</tr>
</table>
@@ -149,7 +149,7 @@
<ul>
<li>
<p class="button no-table">
- <a style="background-image: url(/i/icons/tick.png);">Already Installed</a>
+ <a style="background-image: url([% combust.static_url("/images/icons/tick.png);") %]">Already Installed</a>
</p>You probably already have perl
installed. Type <code>perl&nbsp;-v</code> on a command line to
find out which version.
@@ -179,7 +179,7 @@
<ul>
<li>
<p class="button no-table">
- <a style="background-image: url(/i/icons/tick.png);">Already Installed</a>
+ <a style="background-image: url([% combust.static_url("/images/icons/tick.png);") %]">Already Installed</a>
</p>Mac OS X already has Perl installed. Open a <i>Terminal</i> application (in the Utilities folder of your Applications folder)</i> and run <code>perl&nbsp;-v</code> to find out which version.
</li>
View
16 docs/www/index.html
@@ -53,7 +53,7 @@
<tr>
<td>
<div class="module">
- <a href="/learn.html"><img alt="" src="/i/icons/learn.png" width="45" height="45" /></a>
+ <a href="/learn.html"><img alt="" src="[% combust.static_url("/images/icons/learn.png") %]" width="45" height="45" /></a>
<h4>
<a href="/learn.html">Learning Perl</a>
</h4>
@@ -64,7 +64,7 @@
</td>
<td>
<div class="module">
- <a href="/community.html"><img alt="" src="/i/icons/community.png" width="45" height="45" /></a>
+ <a href="/community.html"><img alt="" src="[% combust.static_url("/images/icons/community.png") %]" width="45" height="45" /></a>
<h4>
<a href="/community.html">The Perl Community</a>
</h4>
@@ -77,7 +77,7 @@
<tr>
<td>
<div class="module">
- <a href="/docs.html"><img alt="" src="/i/icons/docs.png" width="45" height="45" /></a>
+ <a href="/docs.html"><img alt="" src="[% combust.static_url("/images/icons/docs.png") %]" width="45" height="45" /></a>
<h4>
<a href="/docs.html">Documentation</a>
</h4>
@@ -88,7 +88,7 @@
</td>
<td>
<div class="module">
- <a href="/contribute.html"><img alt="" src="/i/icons/cog.png" width="45" height="45" /></a>
+ <a href="/contribute.html"><img alt="" src="[% combust.static_url("/images/icons/cog.png") %]" width="45" height="45" /></a>
<h4>
<a href="/contribute.html">Contribute to Perl</a>
</h4>
@@ -101,7 +101,7 @@
<tr>
<td>
<div class="module">
- <a href="/cpan.html"><img alt="" src="/i/icons/cpan.png" width="45" height="45" /></a>
+ <a href="/cpan.html"><img alt="" src="[% combust.static_url("/images/icons/cpan.png") %]" width="45" height="45" /></a>
<h4>
<a href="/cpan.html">CPAN</a>
</h4>
@@ -112,7 +112,7 @@
</td>
<td>
<div class="module">
- <a href="/events.html"><img alt="" src="/i/icons/cal.png" width="45" height="45" /></a>
+ <a href="/events.html"><img alt="" src="[% combust.static_url("/images/icons/cal.png") %]" width="45" height="45" /></a>
<h4>
<a href="/events.html">Events and Conferences</a>
</h4>
@@ -125,7 +125,7 @@
<tr>
<td>
<div class="module">
- <a href="http://www.perl6.org/"><img alt="" src="/i/icons/perl6.png" width="45" height="45" /></a>
+ <a href="http://www.perl6.org/"><img alt="" src="[% combust.static_url("/images/icons/perl6.png") %]" width="45" height="45" /></a>
<h4>
<a href="http://www.perl6.org/">Perl 6</a>
</h4>
@@ -136,7 +136,7 @@
</td>
<td>
<div class="module">
- <a href="http://www.perlfoundation.org/"><img alt="" src="/i/icons/onion.png" width="45" height="45" /></a>
+ <a href="http://www.perlfoundation.org/"><img alt="" src="[% combust.static_url("/images/icons/onion.png") %]" width="45" height="45" /></a>
<h4>
<a href="http://www.perlfoundation.org/">The Perl Foundation</a>
</h4>
View
120 docs/www/tpl/defaults
@@ -13,130 +13,10 @@
PROCESS tpl/stats.html;
PROCESS tpl/tips.html;
-%]
-[%- BLOCK nav_tabs %]
-<ul>
- <li[% ' class="selected"' IF page.section == 'home' %]>
- <a href="/">Home</a>
- </li>
- <li[% ' class="selected"' IF page.section == 'learn' %]>
- <a href="/learn.html">Learn</a>
- </li>
- <li[% ' class="selected"' IF page.section == 'docs' %]>
- <a href="/docs.html">Documentation</a>
- </li>
- <li[% ' class="selected"' IF page.section == 'cpan' %]>