summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--conf/httpd.conf.in2
-rw-r--r--htdocs/ancestry/layout.chtml24
-rw-r--r--htdocs/exceptions/compile.chtml2
-rw-r--r--htdocs/exceptions/index.chtml4
-rw-r--r--htdocs/exceptions/preprocess.chtml2
-rw-r--r--htdocs/exceptions/runtime.chtml2
-rw-r--r--htdocs/index.chtml3
-rw-r--r--htdocs/simple.chtml2
-rw-r--r--htdocs/sources.chtml1
-rw-r--r--htdocs/style.css28
10 files changed, 69 insertions, 1 deletions
diff --git a/conf/httpd.conf.in b/conf/httpd.conf.in
index 5910620..2184627 100644
--- a/conf/httpd.conf.in
+++ b/conf/httpd.conf.in
@@ -1,2 +1,2 @@
1FastCgiExternalServer @web_run_root@/fastcgi-bin/site-c-ing -socket @web_run_root@/run/sitecing-socket 1FastCgiExternalServer @web_run_root@/fastcgi-bin/site-c-ing -socket @web_run_root@/run/sitecing-socket -flush
2<VirtualHost *:80> 2<VirtualHost *:80>
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
@@ -2,4 +2,15 @@
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>
@@ -8,2 +19,14 @@
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() %>
@@ -14,2 +37,3 @@
14 } 37 }
38 prevnext();
15 content(); 39 content();
diff --git a/htdocs/exceptions/compile.chtml b/htdocs/exceptions/compile.chtml
index aa4c8df..68dd034 100644
--- a/htdocs/exceptions/compile.chtml
+++ b/htdocs/exceptions/compile.chtml
@@ -4,2 +4,4 @@
4 b_strict = false; 4 b_strict = false;
5 PN_PREV("/exceptions/preprocess","preprocess","preprocessing errors");
6 PN_NEXT("/exceptions/runtime","runtime","runtime exceptions");
5</%constructor> 7</%constructor>
diff --git a/htdocs/exceptions/index.chtml b/htdocs/exceptions/index.chtml
index cc0ed8a..e66620a 100644
--- a/htdocs/exceptions/index.chtml
+++ b/htdocs/exceptions/index.chtml
@@ -2,2 +2,6 @@
2%%derive layout = "/ancestry/layout.chtml"; 2%%derive layout = "/ancestry/layout.chtml";
3<%constructor>
4 PN_PREV("/simple","simple page","building a really simple page");
5 PN_NEXT("/exceptions/preprocess","preprocess","preprocessing errors");
6</%constructor>
3<%codemethod string title() %> 7<%codemethod string title() %>
diff --git a/htdocs/exceptions/preprocess.chtml b/htdocs/exceptions/preprocess.chtml
index 8516139..88b8741 100644
--- a/htdocs/exceptions/preprocess.chtml
+++ b/htdocs/exceptions/preprocess.chtml
@@ -4,2 +4,4 @@
4 b_strict = false; 4 b_strict = false;
5 PN_PREV("/exceptions","exceptions","exception handling overview");
6 PN_NEXT("/exceptions/compile","compile-time","compile-time errors");
5</%constructor> 7</%constructor>
diff --git a/htdocs/exceptions/runtime.chtml b/htdocs/exceptions/runtime.chtml
index d0a8e14..9a72afd 100644
--- a/htdocs/exceptions/runtime.chtml
+++ b/htdocs/exceptions/runtime.chtml
@@ -4,2 +4,4 @@
4 b_strict = false; 4 b_strict = false;
5 PN_PREV("/exceptions/compile","compile-time","compile-time errors");
6 PN_NEXT("/sources","sources","source browser");
5</%constructor> 7</%constructor>
diff --git a/htdocs/index.chtml b/htdocs/index.chtml
index aa0979a..e8cedda 100644
--- a/htdocs/index.chtml
+++ b/htdocs/index.chtml
@@ -2,2 +2,5 @@
2%%derive layout = "/ancestry/layout.chtml"; 2%%derive layout = "/ancestry/layout.chtml";
3<%constructor>
4 PN_NEXT("/simple","simple page","building a really simple page");
5</%constructor>
3<%codemethod string title() %> 6<%codemethod string title() %>
diff --git a/htdocs/simple.chtml b/htdocs/simple.chtml
index 9900f00..845b840 100644
--- a/htdocs/simple.chtml
+++ b/htdocs/simple.chtml
@@ -4,2 +4,4 @@
4 b_strict = false; 4 b_strict = false;
5 PN_PREV("/","overview","introduction to site-C-ing");
6 PN_NEXT("/exceptions","exceptions","exception handling overview");
5</%constructor> 7</%constructor>
diff --git a/htdocs/sources.chtml b/htdocs/sources.chtml
index b1eeed3..6341f49 100644
--- a/htdocs/sources.chtml
+++ b/htdocs/sources.chtml
@@ -8,2 +8,3 @@
8 b_strict = false; 8 b_strict = false;
9 PN_PREV("/exceptions/runtime","runtime","runtime exceptions");
9</%constructor> 10</%constructor>
diff --git a/htdocs/style.css b/htdocs/style.css
index 3ab1b6f..83e308f 100644
--- a/htdocs/style.css
+++ b/htdocs/style.css
@@ -118,2 +118,6 @@ div#content h1 {
118 margin: 1em; 118 margin: 1em;
119 clear: both;
120}
121div#content p a {
122 font-weight: bold;
119} 123}
@@ -177 +181,25 @@ ul.sourcebrowser li.file a:hover {
177} 181}
182
183div.prevnext {
184 margin: 1ex;
185}
186div.prevnext a {
187 margin: 0.5ex 1em; padding: 0.2ex 0.5ex;
188 display: block; width: 30%;
189 border: solid 1px gray;
190 color: black;
191 text-decoration: none;
192}
193div.prevnext a.prevnext-prev {
194 float: left;
195 text-align: left;
196}
197div.prevnext a.prevnext-next {
198 float: right;
199 text-align: right;
200}
201div.prevnext a:hover {
202 background: gray;
203 border: black 1px solid;
204 color: white;
205}