]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/wiki/wiki-common.xml
webapps.wiki: adding back the container.
[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
38             <t:if t:value="contents">
39                 <img id="menu" onclick="toggleSidebar()" src="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjI0cHgiIHdpZHRoPSIyNHB4IiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAzMiAzMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNCwxMGgyNGMxLjEwNCwwLDItMC44OTYsMi0ycy0wLjg5Ni0yLTItMkg0QzIuODk2LDYsMiw2Ljg5NiwyLDhTMi44OTYsMTAsNCwxMHogTTI4LDE0SDRjLTEuMTA0LDAtMiwwLjg5Ni0yLDIgIHMwLjg5NiwyLDIsMmgyNGMxLjEwNCwwLDItMC44OTYsMi0yUzI5LjEwNCwxNCwyOCwxNHogTTI4LDIySDRjLTEuMTA0LDAtMiwwLjg5Ni0yLDJzMC44OTYsMiwyLDJoMjRjMS4xMDQsMCwyLTAuODk2LDItMiAgUzI5LjEwNCwyMiwyOCwyMnoiLz48L3N2Zz4=" />
40             </t:if>
41
42             <t:a t:href="$wiki">Front Page</t:a>
43             <t:a t:href="$wiki/articles">All Articles</t:a>
44             <t:a t:href="$wiki/changes">Recent Changes</t:a>
45             <t:a t:href="$wiki/random">Random Article</t:a>
46
47             <t:if t:code="furnace.auth:logged-in?">
48
49                 <t:if t:code="furnace.auth.features.edit-profile:allow-edit-profile?">
50                     <t:a t:href="$realm/edit-profile" t:aside="begin">Edit Profile</t:a>
51                 </t:if>
52
53                 <t:button t:action="$login-realm/logout" t:aside="begin" class="link-button link">Logout</t:button>
54
55             </t:if>
56
57         </div>
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             <div class="footer">
68                 <t:bind t:name="footer">
69                     <t:farkup t:name="content" t:no-follow="true" />
70                 </t:bind>
71             </div>
72         </t:if>
73
74     </div>
75
76     <span style="display:none"></span>
77
78         </div>
79
80 </t:chloe>