]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/wiki/wiki-common.xml
webapps: simplify navrow.
[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:script t:include="resource:extra/webapps/wiki/wiki.js" />
16
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             <t:if t:value="contents">
36                 <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>" />
37             </t:if>
38
39             <t:a t:href="$wiki">Front Page</t:a>
40             <t:a t:href="$wiki/articles">All Articles</t:a>
41             <t:a t:href="$wiki/changes">Recent Changes</t:a>
42             <t:a t:href="$wiki/random">Random Article</t:a>
43
44             <t:if t:code="furnace.auth:logged-in?">
45
46                 <t:if t:code="furnace.auth.features.edit-profile:allow-edit-profile?">
47                     <t:a t:href="$realm/edit-profile" t:aside="begin">Edit Profile</t:a>
48                 </t:if>
49
50                 <t:button t:action="$login-realm/logout" t:aside="begin" class="link-button link">Logout</t:button>
51
52             </t:if>
53         </nav>
54
55         <div class="page">
56             <h1 class="title"><t:write-title /></h1>
57
58             <t:call-next-template />
59
60         </div>
61
62         <t:if t:value="footer">
63             <footer>
64                 <t:bind t:name="footer">
65                     <t:farkup t:name="content" t:no-follow="true" />
66                 </t:bind>
67             </footer>
68         </t:if>
69
70     </div>
71
72     <span style="display:none"></span>
73
74 </t:chloe>