Diffstat (limited to 'htdocs/ancestry/layout.chtml') (more/less context) (ignore whitespace changes)
-rw-r--r-- | htdocs/ancestry/layout.chtml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/htdocs/ancestry/layout.chtml b/htdocs/ancestry/layout.chtml index 11bd74a..6147d37 100644 --- a/htdocs/ancestry/layout.chtml +++ b/htdocs/ancestry/layout.chtml | |||
@@ -1,11 +1,16 @@ | |||
1 | % html(); return; /* vim:set ft=sitecing: */ | 1 | % html(); return; /* vim:set ft=sitecing: */ |
2 | %%derive page = "/ancestry/page.chtml"; | 2 | %%derive page = "/ancestry/page.chtml"; |
3 | %%impl #include "acconfig.h" | 3 | %%impl #include "acconfig.h" |
4 | %%var bool b_svn = false; | ||
5 | <%constructor> | ||
6 | if(strstr(PACKAGE_STRING,"svn")) | ||
7 | b_svn = true; | ||
8 | </%constructor> | ||
4 | <%method void body() %> | 9 | <%method void body() %> |
5 | <div id="content"> | 10 | <div id="content"> |
6 | <%code> | 11 | <%code> |
7 | if(!access(WEB_RUN_ROOT "/conf/banner_top",R_OK)) { | 12 | if(!access(WEB_RUN_ROOT "/conf/banner_top",R_OK)) { |
8 | pass_file_through(WEB_RUN_ROOT "/conf/banner_top"); | 13 | pass_file_through(WEB_RUN_ROOT "/conf/banner_top"); |
9 | } | 14 | } |
10 | content(); | 15 | content(); |
11 | if(b_strict && !access(WEB_RUN_ROOT "/conf/banner_bottom",R_OK)) { | 16 | if(b_strict && !access(WEB_RUN_ROOT "/conf/banner_bottom",R_OK)) { |
@@ -16,18 +21,23 @@ | |||
16 | <div id="sidepanel"> | 21 | <div id="sidepanel"> |
17 | % sidepanel(); | 22 | % sidepanel(); |
18 | </div> | 23 | </div> |
19 | </%method> | 24 | </%method> |
20 | <%method void content() %> | 25 | <%method void content() %> |
21 | </%method> | 26 | </%method> |
22 | <%method void sidepanel() %> | 27 | <%method void sidepanel() %> |
23 | <h1><% PACKAGE_STRING %></h1> | 28 | <h1><% PACKAGE_STRING %></h1> |
29 | % if(b_svn) { | ||
30 | <h2>The site is running source from the source repository which may differ | ||
31 | from the one available for download. You can check it out from the <a | ||
32 | href="http://kin.klever.net/sitecing/repository">source repository</a>.</h2> | ||
33 | % } | ||
24 | % /* thank MSIE for this awful formatting */ | 34 | % /* thank MSIE for this awful formatting */ |
25 | <ul><li><a href="/" title="introduction to site-C-ing">intro</a></li><li><a href="/exceptions/" title="exceptions handling">exceptions</a><ul><li><a href="/exceptions/preprocess" title="preprocessor errors">preprocess</a></li><li><a href="/exceptions/compile" title="compiler errors">compile-time</a></li><li><a href="/exceptions/runtime" title="runtime exceptions">runtime</a></li></ul></li><li><a href="/sources" title="browse this site source files">sources</a></li></ul> | 35 | <ul><li><a href="/" title="introduction to site-C-ing">overview</a><ul><li><a href="/simple" title="building a really simple page">simple page</a></li></ul></li><li><a href="/exceptions/" title="exceptions handling">exceptions</a><ul><li><a href="/exceptions/preprocess" title="preprocessor errors">preprocess</a></li><li><a href="/exceptions/compile" title="compiler errors">compile-time</a></li><li><a href="/exceptions/runtime" title="runtime exceptions">runtime</a></li></ul></li><li><a href="/sources" title="browse this site source files">sources</a></li></ul> |
26 | <%code> | 36 | <%code> |
27 | if(!access(WEB_RUN_ROOT "/conf/banner_side",R_OK)) { | 37 | if(!access(WEB_RUN_ROOT "/conf/banner_side",R_OK)) { |
28 | pass_file_through(WEB_RUN_ROOT "/conf/banner_side"); | 38 | pass_file_through(WEB_RUN_ROOT "/conf/banner_side"); |
29 | } | 39 | } |
30 | </%code> | 40 | </%code> |
31 | <ul><li><a href="http://kin.klever.net/sitecing/" title="main site-C-ing page">site-C-ing</a></li><li><a href="http://kin.klever.net/sitecing/sources" title="site-C-ing download page">downloads</a></li></ul> | 41 | <ul><li><a href="http://kin.klever.net/sitecing/" title="main site-C-ing page">site-C-ing</a></li><li><a href="http://kin.klever.net/sitecing/sources" title="site-C-ing download page">downloads</a></li></ul> |
32 | <div class="copyright"> | 42 | <div class="copyright"> |
33 | © <a href="http://www.klever.net/">Klever Group</a> | 43 | © <a href="http://www.klever.net/">Klever Group</a> |