]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/wiki/wiki-common.xml
webapps.wiki: style the header.
[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" />
26                 </t:bind>
27             </div>
28         </t:if>
29
30     </div>
31
32     <div id="right">
33
34         <div class="navbar">
35
36             <t:if t:value="contents">
37                 <img id="menu" onclick="toggleSidebar()" src="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjMycHgiIHdpZHRoPSIzMnB4IiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAzMiAzMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNCwxMGgyNGMxLjEwNCwwLDItMC44OTYsMi0ycy0wLjg5Ni0yLTItMkg0QzIuODk2LDYsMiw2Ljg5NiwyLDhTMi44OTYsMTAsNCwxMHogTTI4LDE0SDRjLTEuMTA0LDAtMiwwLjg5Ni0yLDIgIHMwLjg5NiwyLDIsMmgyNGMxLjEwNCwwLDItMC44OTYsMi0yUzI5LjEwNCwxNCwyOCwxNHogTTI4LDIySDRjLTEuMTA0LDAtMiwwLjg5Ni0yLDJzMC44OTYsMiwyLDJoMjRjMS4xMDQsMCwyLTAuODk2LDItMiAgUzI5LjEwNCwyMiwyOCwyMnoiLz48L3N2Zz4K" />
38             </t:if>
39
40             <t:a t:href="$wiki">Front Page</t:a>
41             <t:a t:href="$wiki/articles">All Articles</t:a>
42             <t:a t:href="$wiki/changes">Recent Changes</t:a>
43             <t:a t:href="$wiki/random">Random Article</t:a>
44
45             <t:if t:code="furnace.auth:logged-in?">
46
47                 <t:if t:code="furnace.auth.features.edit-profile:allow-edit-profile?">
48                     <t:a t:href="$realm/edit-profile" t:aside="begin">Edit Profile</t:a>
49                 </t:if>
50
51                 <t:button t:action="$login-realm/logout" t:aside="begin" class="link-button link">Logout</t:button>
52
53             </t:if>
54
55         </div>
56
57         <div class="page">
58             <h1 class="title"><t:write-title /></h1>
59
60             <t:call-next-template />
61
62         </div>
63
64         <t:if t:value="footer">
65             <div class="footer">
66                 <t:bind t:name="footer">
67                     <t:farkup t:name="content" />
68                 </t:bind>
69             </div>
70         </t:if>
71
72     </div>
73
74     <span style="display:none"></span>
75
76 </t:chloe>