]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/wiki/wiki-common.xml
webapps.wiki: relative path for now
[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="container">
12
13     <div id="left">
14
15         <t:if t:value="contents">
16             <t:script t:include="resource:extra/webapps/wiki/wiki-contents.js" />
17
18             <t:style t:include="resource:extra/webapps/wiki/wiki-contents.css" />
19             <div class="contents">
20                 <t:bind t:name="contents">
21                     <h2>
22                         <t:a t:href="$wiki/view" t:rest="title">
23                             <t:label t:name="title" />
24                         </t:a>
25                     </h2>
26
27                     <t:farkup t:name="content" t:no-follow="true" />
28                 </t:bind>
29             </div>
30         </t:if>
31
32     </div>
33
34     <div id="right">
35
36         <div class="navbar">
37         <div class="navrow">
38
39             <t:if t:value="contents">
40                 <img id="menu" onclick="toggleSidebar()" src="../icons/hamburger.svg" />
41             </t:if>
42
43             <t:a t:href="$wiki">Front Page</t:a>
44             <t:a t:href="$wiki/articles">All Articles</t:a>
45             <t:a t:href="$wiki/changes">Recent Changes</t:a>
46             <t:a t:href="$wiki/random">Random Article</t:a>
47
48             <t:if t:code="furnace.auth:logged-in?">
49
50                 <t:if t:code="furnace.auth.features.edit-profile:allow-edit-profile?">
51                     <t:a t:href="$realm/edit-profile" t:aside="begin">Edit Profile</t:a>
52                 </t:if>
53
54                 <t:button t:action="$login-realm/logout" t:aside="begin" class="link-button link">Logout</t:button>
55
56             </t:if>
57
58         </div>
59         </div>
60
61         <div class="page">
62             <h1 class="title"><t:write-title /></h1>
63
64             <t:call-next-template />
65
66         </div>
67
68         <t:if t:value="footer">
69             <div class="footer">
70                 <t:bind t:name="footer">
71                     <t:farkup t:name="content" t:no-follow="true" />
72                 </t:bind>
73             </div>
74         </t:if>
75
76     </div>
77
78     <span style="display:none"></span>
79
80         </div>
81
82 </t:chloe>