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