]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/wiki/wiki-common.xml
webapps.wiki: simplify and fix table layouts
[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     <nav>
12         <t:if t:value="contents">
13             <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=%2716%27 viewBox=%270 0 120 100%27 fill=%27rgb(0,0,0)%27%3E%3Crect y=%270%27 width=%27120%27 height=%2720%27 rx=%2710%27 /%3E%3Crect y=%2740%27 width=%27120%27 height=%2720%27 rx=%2710%27 /%3E%3Crect y=%2780%27 width=%27120%27 height=%2720%27 rx=%2710%27 /%3E%3C/svg%3E" />
14         </t:if>
15
16         <t:a t:href="$wiki">Front Page</t:a>
17         <t:a t:href="$wiki/articles">All Articles</t:a>
18         <t:a t:href="$wiki/changes">Recent Changes</t:a>
19         <t:a t:href="$wiki/random">Random Article</t:a>
20
21         <t:if t:code="furnace.auth:logged-in?">
22
23             <t:if t:code="furnace.auth.features.edit-profile:allow-edit-profile?">
24                 <t:a t:href="$realm/edit-profile" t:aside="begin">Edit Profile</t:a>
25             </t:if>
26
27             <t:button t:action="$login-realm/logout" t:aside="begin" class="link-button link">Logout</t:button>
28
29         </t:if>
30     </nav>
31
32     <div class="page">
33
34         <div id="left">
35             <t:if t:value="contents">
36
37                 <t:script t:include="resource:extra/webapps/wiki/wiki.js" />
38
39                 <div class="contents">
40                     <t:bind t:name="contents">
41                         <h2>
42                             <t:a t:href="$wiki/view" t:rest="title">
43                                 <t:label t:name="title" />
44                             </t:a>
45                         </h2>
46
47                         <t:farkup t:name="content" t:no-follow="true" />
48                     </t:bind>
49                 </div>
50             </t:if>
51         </div>
52
53         <div id="right">
54             <h1 class="title"><t:write-title /></h1>
55             <t:call-next-template />
56
57             <t:if t:value="footer">
58                 <footer>
59                     <t:bind t:name="footer">
60                         <t:farkup t:name="content" t:no-follow="true" />
61                     </t:bind>
62                 </footer>
63             </t:if>
64         </div>
65
66     </div>
67
68     <span style="display:none"></span>
69
70 </t:chloe>