-rw-r--r-- | htdocs/ancestry/layout.chtml | 12 | ||||
-rw-r--r-- | htdocs/ancestry/page.chtml | 4 | ||||
-rw-r--r-- | htdocs/ancestry/sources.chtml | 3 |
3 files changed, 16 insertions, 3 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,35 +1,45 @@ | |||
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)) { |
12 | pass_file_through(WEB_RUN_ROOT "/conf/banner_bottom"); | 17 | pass_file_through(WEB_RUN_ROOT "/conf/banner_bottom"); |
13 | } | 18 | } |
14 | </%code> | 19 | </%code> |
15 | </div> | 20 | </div> |
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> |
34 | </div> | 44 | </div> |
35 | </%method> | 45 | </%method> |
diff --git a/htdocs/ancestry/page.chtml b/htdocs/ancestry/page.chtml index 28bf7f0..5bec31e 100644 --- a/htdocs/ancestry/page.chtml +++ b/htdocs/ancestry/page.chtml | |||
@@ -1,28 +1,28 @@ | |||
1 | % html(); return; /* vim:set ft=sitecing: */ | 1 | % html(); return; /* vim:set ft=sitecing: */ |
2 | %%var bool b_strict = true; | 2 | %%var bool b_strict = true; |
3 | <%decl> | 3 | <%decl> |
4 | using std::string; | 4 | using std::string; |
5 | </%decl> | 5 | </%decl> |
6 | <%method void html() %> | 6 | <%method void html() %> |
7 | % if(b_strict){ | 7 | % if(b_strict){ |
8 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | 8 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
9 | % }else{ | 9 | % }else{ |
10 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> | 10 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> |
11 | % } | 11 | % } |
12 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> | 12 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> |
13 | <head> | 13 | <head> |
14 | % __SCIF->headers["Content-Type"] = "text/html"; | 14 | % __SCIF->headers["Content-Type"] = "text/html"; |
15 | <title><% title() %></title> | 15 | <title>site-C-ing: <% title() %></title> |
16 | <meta name="copyright" content="Copyright (c) 1996-2005 Klever Group"/> | 16 | <meta name="copyright" content="Copyright (c) 2005 Klever Group"/> |
17 | <link rel="stylesheet" href="/style.css" type="text/css" /> | 17 | <link rel="stylesheet" href="/style.css" type="text/css" /> |
18 | </head> | 18 | </head> |
19 | <body> | 19 | <body> |
20 | % body(); | 20 | % body(); |
21 | </body> | 21 | </body> |
22 | </html> | 22 | </html> |
23 | </%method> | 23 | </%method> |
24 | <%codemethod string title() %> | 24 | <%codemethod string title() %> |
25 | return "untitled"; | 25 | return "untitled"; |
26 | </%codemethod> | 26 | </%codemethod> |
27 | <%method void body() %> | 27 | <%method void body() %> |
28 | </%method> | 28 | </%method> |
diff --git a/htdocs/ancestry/sources.chtml b/htdocs/ancestry/sources.chtml index eb9c790..35ced64 100644 --- a/htdocs/ancestry/sources.chtml +++ b/htdocs/ancestry/sources.chtml | |||
@@ -1,75 +1,78 @@ | |||
1 | <%decl> | 1 | <%decl> |
2 | typedef struct { | 2 | typedef struct { |
3 | const char *dir; | 3 | const char *dir; |
4 | const char *name; | 4 | const char *name; |
5 | const char *desc; | 5 | const char *desc; |
6 | } sourcefile_t; | 6 | } sourcefile_t; |
7 | extern sourcefile_t source_files[]; | 7 | extern sourcefile_t source_files[]; |
8 | extern int source_files_count; | 8 | extern int source_files_count; |
9 | </%decl> | 9 | </%decl> |
10 | <%impl> | 10 | <%impl> |
11 | sourcefile_t source_files[] = { | 11 | sourcefile_t source_files[] = { |
12 | { "", 0, "the root" }, | 12 | { "", 0, "the root" }, |
13 | { "", "configure.ac", "main configuration file" }, | 13 | { "", "configure.ac", "main configuration file" }, |
14 | { "", "acinclude.m4", "autoconf macros" }, | 14 | { "", "acinclude.m4", "autoconf macros" }, |
15 | { "", "autogen.sh", "shell script for building out of source repository" }, | 15 | { "", "autogen.sh", "shell script for building out of source repository" }, |
16 | { "", "Makefile.am", "automake makefile template" }, | 16 | { "", "Makefile.am", "automake makefile template" }, |
17 | { "", "NEWS.xml", "news since the last release (if any)" }, | 17 | { "", "NEWS.xml", "news since the last release (if any)" }, |
18 | { "", "NEWS.xsl", "the styleshhet to make a plaintext version of NEWS.xml" }, | 18 | { "", "NEWS.xsl", "the styleshhet to make a plaintext version of NEWS.xml" }, |
19 | { "", "COPYING", "copyright notice" }, | 19 | { "", "COPYING", "copyright notice" }, |
20 | { "", "AUTHORS", "Klever dissected" }, | 20 | { "", "AUTHORS", "Klever dissected" }, |
21 | { 0, 0, 0 }, | 21 | { 0, 0, 0 }, |
22 | { "bin", 0, "various scripts" }, | 22 | { "bin", 0, "various scripts" }, |
23 | { "bin", "build.in", "the template of the script used to precompile the code" }, | 23 | { "bin", "build.in", "the template of the script used to precompile the code" }, |
24 | { "bin", "run.in", "the template of the script used to start fastcgi server" }, | 24 | { "bin", "run.in", "the template of the script used to start fastcgi server" }, |
25 | { 0, 0, 0 }, | 25 | { 0, 0, 0 }, |
26 | { "conf", 0, "configuration files" }, | 26 | { "conf", 0, "configuration files" }, |
27 | { "conf", "dudki.conf.in", "the template for the dudki daemon configuration file" }, | 27 | { "conf", "dudki.conf.in", "the template for the dudki daemon configuration file" }, |
28 | { "conf", "httpd.conf.in", "the template for the apache configuration" }, | 28 | { "conf", "httpd.conf.in", "the template for the apache configuration" }, |
29 | { "conf", "sitecing.conf.in", "the template for the site-C-ing configuration" }, | 29 | { "conf", "sitecing.conf.in", "the template for the site-C-ing configuration" }, |
30 | { 0, 0, 0 }, | 30 | { 0, 0, 0 }, |
31 | { "htdocs", 0, "the source files" }, | 31 | { "htdocs", 0, "the source files" }, |
32 | { "htdocs", ".htaccess", "apache access-control file" }, | 32 | { "htdocs", ".htaccess", "apache access-control file" }, |
33 | { "htdocs", "index.chtml", "the introduction" }, | 33 | { "htdocs", "index.chtml", "the introduction" }, |
34 | { "htdocs", "sources.chtml", "the source browser" }, | 34 | { "htdocs", "sources.chtml", "the source browser" }, |
35 | { "htdocs", "style.css", "the CSS style sheet" }, | 35 | { "htdocs", "style.css", "the CSS style sheet" }, |
36 | { "htdocs", "view.chtml", "the source viewer" }, | 36 | { "htdocs", "view.chtml", "the source viewer" }, |
37 | { "htdocs/examples", 0, "examples" }, | ||
38 | { "htdocs/examples", "calendar.chtml", "really simple page" }, | ||
39 | { 0,0,0 }, | ||
37 | { "htdocs/exceptions", 0, "exceptions handling overview" }, | 40 | { "htdocs/exceptions", 0, "exceptions handling overview" }, |
38 | { "htdocs/exceptions", "index.chtml", "the overview" }, | 41 | { "htdocs/exceptions", "index.chtml", "the overview" }, |
39 | { "htdocs/exceptions", "preprocess.chtml", "preprocessor exceptions" }, | 42 | { "htdocs/exceptions", "preprocess.chtml", "preprocessor exceptions" }, |
40 | { "htdocs/exceptions", "compile.chtml", "compile-time exceptions" }, | 43 | { "htdocs/exceptions", "compile.chtml", "compile-time exceptions" }, |
41 | { "htdocs/exceptions", "runtime.chtml", "runtime exceptions" }, | 44 | { "htdocs/exceptions", "runtime.chtml", "runtime exceptions" }, |
42 | { "htdocs/exceptions/development", 0, "development-mode exceptions samples" }, | 45 | { "htdocs/exceptions/development", 0, "development-mode exceptions samples" }, |
43 | { "htdocs/exceptions/development", ".htaccess", "apache access control file" }, | 46 | { "htdocs/exceptions/development", ".htaccess", "apache access control file" }, |
44 | { "htdocs/exceptions/development", ".scrc", "site-C-ing local configuration" }, | 47 | { "htdocs/exceptions/development", ".scrc", "site-C-ing local configuration" }, |
45 | { "htdocs/exceptions/development", "preprocess.chtml", "the file that can not be preprocessed" }, | 48 | { "htdocs/exceptions/development", "preprocess.chtml", "the file that can not be preprocessed" }, |
46 | { "htdocs/exceptions/development", "runtime.chtml", "exception thrown at runtime" }, | 49 | { "htdocs/exceptions/development", "runtime.chtml", "exception thrown at runtime" }, |
47 | { "htdocs/exceptions/development", "compile.chtml", "the file that can not be compiled" }, | 50 | { "htdocs/exceptions/development", "compile.chtml", "the file that can not be compiled" }, |
48 | { "htdocs/exceptions/development", "erroneous.h", "the file to include for more errors" }, | 51 | { "htdocs/exceptions/development", "erroneous.h", "the file to include for more errors" }, |
49 | { "htdocs/exceptions/development", "compile.html", "compile-time exception handler output" }, | 52 | { "htdocs/exceptions/development", "compile.html", "compile-time exception handler output" }, |
50 | { 0,0,0 }, | 53 | { 0,0,0 }, |
51 | { "htdocs/exceptions/production", 0, "production-mode exceptions samples" }, | 54 | { "htdocs/exceptions/production", 0, "production-mode exceptions samples" }, |
52 | { "htdocs/exceptions/production", ".htaccess", "apache access control file" }, | 55 | { "htdocs/exceptions/production", ".htaccess", "apache access control file" }, |
53 | { "htdocs/exceptions/production", ".scrc", "site-C-ing local configuration" }, | 56 | { "htdocs/exceptions/production", ".scrc", "site-C-ing local configuration" }, |
54 | { "htdocs/exceptions/production", "preprocess.chtml", "the file that can not be preprocessed" }, | 57 | { "htdocs/exceptions/production", "preprocess.chtml", "the file that can not be preprocessed" }, |
55 | { "htdocs/exceptions/production", "runtime.chtml", "exception thrown at runtime" }, | 58 | { "htdocs/exceptions/production", "runtime.chtml", "exception thrown at runtime" }, |
56 | { "htdocs/exceptions/production", "compile.chtml", "the file that can not be compiled" }, | 59 | { "htdocs/exceptions/production", "compile.chtml", "the file that can not be compiled" }, |
57 | { "htdocs/exceptions/production", "erroneous.h", "the file to include for more errors" }, | 60 | { "htdocs/exceptions/production", "erroneous.h", "the file to include for more errors" }, |
58 | { "htdocs/exceptions/production", "compile.html", "compile-time exception handler output" }, | 61 | { "htdocs/exceptions/production", "compile.html", "compile-time exception handler output" }, |
59 | { 0,0,0 }, | 62 | { 0,0,0 }, |
60 | { 0,0,0 }, | 63 | { 0,0,0 }, |
61 | { "htdocs/handlers", 0, "exception handlers" }, | 64 | { "htdocs/handlers", 0, "exception handlers" }, |
62 | { "htdocs/handlers", ".htaccess", "apache access-control file" }, | 65 | { "htdocs/handlers", ".htaccess", "apache access-control file" }, |
63 | { "htdocs/handlers", "exception_dev", "development mode exception handler" }, | 66 | { "htdocs/handlers", "exception_dev", "development mode exception handler" }, |
64 | { "htdocs/handlers", "exception_prod", "production mode exception handler" }, | 67 | { "htdocs/handlers", "exception_prod", "production mode exception handler" }, |
65 | { 0,0,0 }, | 68 | { 0,0,0 }, |
66 | { "htdocs/ancestry", 0, "base components to build the rest upon" }, | 69 | { "htdocs/ancestry", 0, "base components to build the rest upon" }, |
67 | { "htdocs/ancestry", ".htaccess", "apache access control file" }, | 70 | { "htdocs/ancestry", ".htaccess", "apache access control file" }, |
68 | { "htdocs/ancestry", "page.chtml", "the xhtml skeleton" }, | 71 | { "htdocs/ancestry", "page.chtml", "the xhtml skeleton" }, |
69 | { "htdocs/ancestry", "layout.chtml", "the layout for the most pages" }, | 72 | { "htdocs/ancestry", "layout.chtml", "the layout for the most pages" }, |
70 | { "htdocs/ancestry", "sources.chtml", "the list of files for source browser" }, | 73 | { "htdocs/ancestry", "sources.chtml", "the list of files for source browser" }, |
71 | { 0,0,0 }, | 74 | { 0,0,0 }, |
72 | { 0,0,0 } | 75 | { 0,0,0 } |
73 | }; | 76 | }; |
74 | int source_files_count = sizeof(source_files)/sizeof(*source_files); | 77 | int source_files_count = sizeof(source_files)/sizeof(*source_files); |
75 | </%impl> | 78 | </%impl> |