From 870963df2dac72e433fd7f94cd1cccc8cd6ea2d0 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Wed, 02 Feb 2005 22:30:27 +0000 Subject: 1. changed version to -svn 2. added a really simple page example 3. removed 'border=' attribute from iframe 4. added notice about svn version 5. added 'site-C-ing:' prefix to the title --- (limited to 'htdocs/ancestry') 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,6 +1,11 @@ % html(); return; /* vim:set ft=sitecing: */ %%derive page = "/ancestry/page.chtml"; %%impl #include "acconfig.h" +%%var bool b_svn = false; +<%constructor> + if(strstr(PACKAGE_STRING,"svn")) + b_svn = true; + <%method void body() %>
<%code> @@ -21,8 +26,13 @@ <%method void sidepanel() %>

<% PACKAGE_STRING %>

+% if(b_svn) { +

The site is running source from the source repository which may differ + from the one available for download. You can check it out from the source repository.

+% } % /* thank MSIE for this awful formatting */ - + <%code> if(!access(WEB_RUN_ROOT "/conf/banner_side",R_OK)) { pass_file_through(WEB_RUN_ROOT "/conf/banner_side"); 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 @@ -12,8 +12,8 @@ % __SCIF->headers["Content-Type"] = "text/html"; - <% title() %> - + site-C-ing: <% title() %> + 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 @@ -34,6 +34,9 @@ { "htdocs", "sources.chtml", "the source browser" }, { "htdocs", "style.css", "the CSS style sheet" }, { "htdocs", "view.chtml", "the source viewer" }, + { "htdocs/examples", 0, "examples" }, + { "htdocs/examples", "calendar.chtml", "really simple page" }, + { 0,0,0 }, { "htdocs/exceptions", 0, "exceptions handling overview" }, { "htdocs/exceptions", "index.chtml", "the overview" }, { "htdocs/exceptions", "preprocess.chtml", "preprocessor exceptions" }, -- cgit v0.9.0.2