]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/wiki/wiki-common.xml
websites.concatenative: move container div to page.xml.
[factor.git] / extra / webapps / wiki / wiki-common.xml
1 <?xml version='1.0' ?>
2
3 <t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
4
5         <t:atom t:href="$wiki/changes.atom">
6                 Recent Changes
7         </t:atom>
8
9         <t:style t:include="resource:extra/webapps/wiki/wiki.css" />
10
11     <div id="left">
12
13         <t:if t:value="contents">
14
15             <t:style t:include="resource:extra/webapps/wiki/wiki-contents.css" />
16             <div class="contents">
17                 <t:bind t:name="contents">
18                     <h2>
19                         <t:a t:href="$wiki/view" t:rest="title">
20                             <t:label t:name="title" />
21                         </t:a>
22                     </h2>
23
24                     <t:farkup t:name="content" />
25                 </t:bind>
26             </div>
27         </t:if>
28
29     </div>
30
31     <div id="right">
32
33         <div class="navbar">
34
35             <t:a t:href="$wiki">Front Page</t:a>
36             <t:a t:href="$wiki/articles">All Articles</t:a>
37             <t:a t:href="$wiki/changes">Recent Changes</t:a>
38             <t:a t:href="$wiki/random">Random Article</t:a>
39
40             <t:if t:code="furnace.auth:logged-in?">
41
42                 <t:if t:code="furnace.auth.features.edit-profile:allow-edit-profile?">
43                     <t:a t:href="$realm/edit-profile" t:aside="begin">Edit Profile</t:a>
44                 </t:if>
45
46                 <t:button t:action="$login-realm/logout" t:aside="begin" class="link-button link">Logout</t:button>
47
48             </t:if>
49
50         </div>
51
52         <div class="page">
53             <h1><t:write-title /></h1>
54
55             <t:call-next-template />
56
57         </div>
58
59         <t:if t:value="footer">
60             <div class="footer">
61                 <t:bind t:name="footer">
62                     <t:farkup t:name="content" />
63                 </t:bind>
64             </div>
65         </t:if>
66
67     </div>
68
69     <span style="display:none"></span>
70
71 </t:chloe>