]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/wiki/wiki-common.xml
f8a1820ed696899ef32ca458a66ae6828f8a069d
[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             <t:script t:include="resource:extra/webapps/wiki/wiki-contents.js" />
15
16             <t:style t:include="resource:extra/webapps/wiki/wiki-contents.css" />
17             <div class="contents">
18                 <t:bind t:name="contents">
19                     <h2>
20                         <t:a t:href="$wiki/view" t:rest="title">
21                             <t:label t:name="title" />
22                         </t:a>
23                     </h2>
24
25                     <t:farkup t:name="content" t:no-follow="true" />
26                 </t:bind>
27             </div>
28         </t:if>
29
30     </div>
31
32     <div id="right">
33
34         <nav>
35         <div class="navrow">
36
37             <t:if t:value="contents">
38                 <img id="menu" onclick="toggleSidebar()" src="data:image/svg+xml;utf8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 xmlns:xlink=%27http://www.w3.org/1999/xlink%27 width=%2724%27 height=%2724%27 viewBox=%270 0 100 100%27 fill=%27rgb(0,0,0)%27%3E%3Crect x=%2710%27 y=%2720%27 width=%2780%27 height=%2712%27 rx=%276%27 /%3E%3Crect x=%2710%27 y=%2744%27 width=%2780%27 height=%2712%27 rx=%276%27 /%3E%3Crect x=%2710%27 y=%2768%27 width=%2780%27 height=%2712%27 rx=%276%27 /%3E%3C/svg>" />
39             </t:if>
40
41             <t:a t:href="$wiki">Front Page</t:a>
42             <t:a t:href="$wiki/articles">All Articles</t:a>
43             <t:a t:href="$wiki/changes">Recent Changes</t:a>
44             <t:a t:href="$wiki/random">Random Article</t:a>
45
46             <t:if t:code="furnace.auth:logged-in?">
47
48                 <t:if t:code="furnace.auth.features.edit-profile:allow-edit-profile?">
49                     <t:a t:href="$realm/edit-profile" t:aside="begin">Edit Profile</t:a>
50                 </t:if>
51
52                 <t:button t:action="$login-realm/logout" t:aside="begin" class="link-button link">Logout</t:button>
53
54             </t:if>
55
56         </div>
57         </nav>
58
59         <div class="page">
60             <h1 class="title"><t:write-title /></h1>
61
62             <t:call-next-template />
63
64         </div>
65
66         <t:if t:value="footer">
67             <footer>
68                 <t:bind t:name="footer">
69                     <t:farkup t:name="content" t:no-follow="true" />
70                 </t:bind>
71             </footer>
72         </t:if>
73
74     </div>
75
76     <span style="display:none"></span>
77
78 </t:chloe>