Diffstat (limited to 'htdocs/ancestry/layout.chtml') (more/less context) (ignore whitespace changes)
-rw-r--r-- | htdocs/ancestry/layout.chtml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/htdocs/ancestry/layout.chtml b/htdocs/ancestry/layout.chtml index 6147d37..0c167bc 100644 --- a/htdocs/ancestry/layout.chtml +++ b/htdocs/ancestry/layout.chtml | |||
@@ -1,45 +1,69 @@ | |||
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 | <%decl> | ||
4 | #define PN_PREV(h,d,t) urlPrev=h; descPrev=d; titlePrev=t; | ||
5 | #define PN_NEXT(h,d,t) urlNext=h; descNext=d; titleNext=t; | ||
6 | </%decl> | ||
7 | %%impl #include <sitecing/util.h> | ||
3 | %%impl #include "acconfig.h" | 8 | %%impl #include "acconfig.h" |
4 | %%var bool b_svn = false; | 9 | %%var bool b_svn = false; |
10 | %%var std::string urlPrev; | ||
11 | %%var std::string descPrev; | ||
12 | %%var std::string titlePrev; | ||
13 | %%var std::string urlNext; | ||
14 | %%var std::string descNext; | ||
15 | %%var std::string titleNext; | ||
5 | <%constructor> | 16 | <%constructor> |
6 | if(strstr(PACKAGE_STRING,"svn")) | 17 | if(strstr(PACKAGE_STRING,"svn")) |
7 | b_svn = true; | 18 | b_svn = true; |
8 | </%constructor> | 19 | </%constructor> |
20 | <%method void prevnext() %> | ||
21 | % if(urlPrev.empty() && urlNext.empty()) return; | ||
22 | % if(descPrev.empty() && descNext.empty()) return; | ||
23 | <div class="prevnext"> | ||
24 | % if(!(urlPrev.empty() || descPrev.empty())) { | ||
25 | <a class="prevnext-prev" href="<% urlPrev %>" title="<% sitecing::html_escape(titlePrev.empty()?descPrev:titlePrev) %>"><% sitecing::html_escape(descPrev) %></a> | ||
26 | % } | ||
27 | % if(!(urlNext.empty() || descNext.empty())) { | ||
28 | <a class="prevnext-next" href="<% urlNext %>" title="<% sitecing::html_escape(titleNext.empty()?descNext:titleNext) %>"><% sitecing::html_escape(descNext) %></a> | ||
29 | % } | ||
30 | </div> | ||
31 | </%method> | ||
9 | <%method void body() %> | 32 | <%method void body() %> |
10 | <div id="content"> | 33 | <div id="content"> |
11 | <%code> | 34 | <%code> |
12 | if(!access(WEB_RUN_ROOT "/conf/banner_top",R_OK)) { | 35 | if(!access(WEB_RUN_ROOT "/conf/banner_top",R_OK)) { |
13 | pass_file_through(WEB_RUN_ROOT "/conf/banner_top"); | 36 | pass_file_through(WEB_RUN_ROOT "/conf/banner_top"); |
14 | } | 37 | } |
38 | prevnext(); | ||
15 | content(); | 39 | content(); |
16 | if(b_strict && !access(WEB_RUN_ROOT "/conf/banner_bottom",R_OK)) { | 40 | if(b_strict && !access(WEB_RUN_ROOT "/conf/banner_bottom",R_OK)) { |
17 | pass_file_through(WEB_RUN_ROOT "/conf/banner_bottom"); | 41 | pass_file_through(WEB_RUN_ROOT "/conf/banner_bottom"); |
18 | } | 42 | } |
19 | </%code> | 43 | </%code> |
20 | </div> | 44 | </div> |
21 | <div id="sidepanel"> | 45 | <div id="sidepanel"> |
22 | % sidepanel(); | 46 | % sidepanel(); |
23 | </div> | 47 | </div> |
24 | </%method> | 48 | </%method> |
25 | <%method void content() %> | 49 | <%method void content() %> |
26 | </%method> | 50 | </%method> |
27 | <%method void sidepanel() %> | 51 | <%method void sidepanel() %> |
28 | <h1><% PACKAGE_STRING %></h1> | 52 | <h1><% PACKAGE_STRING %></h1> |
29 | % if(b_svn) { | 53 | % if(b_svn) { |
30 | <h2>The site is running source from the source repository which may differ | 54 | <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 | 55 | 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> | 56 | href="http://kin.klever.net/sitecing/repository">source repository</a>.</h2> |
33 | % } | 57 | % } |
34 | % /* thank MSIE for this awful formatting */ | 58 | % /* thank MSIE for this awful formatting */ |
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> | 59 | <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> |
36 | <%code> | 60 | <%code> |
37 | if(!access(WEB_RUN_ROOT "/conf/banner_side",R_OK)) { | 61 | if(!access(WEB_RUN_ROOT "/conf/banner_side",R_OK)) { |
38 | pass_file_through(WEB_RUN_ROOT "/conf/banner_side"); | 62 | pass_file_through(WEB_RUN_ROOT "/conf/banner_side"); |
39 | } | 63 | } |
40 | </%code> | 64 | </%code> |
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> | 65 | <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> |
42 | <div class="copyright"> | 66 | <div class="copyright"> |
43 | © <a href="http://www.klever.net/">Klever Group</a> | 67 | © <a href="http://www.klever.net/">Klever Group</a> |
44 | </div> | 68 | </div> |
45 | </%method> | 69 | </%method> |