]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/wiki/wiki-common.xml
scryfall: add more filter/reject words, better mtga parser
[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
31         <t:form t:method="get" t:action="$wiki/search" style="display: inline;">
32             <input placeholder="Search" name="search" type="text"/>
33             <input type="submit" value="Go"/>
34         </t:form>
35     </nav>
36
37     <div class="page">
38
39         <div id="left">
40             <t:if t:value="contents">
41
42                 <t:script t:include="resource:extra/webapps/wiki/wiki.js" />
43
44                 <div class="contents">
45                     <t:bind t:name="contents">
46                         <h2>
47                             <t:a t:href="$wiki/view" t:rest="title">
48                                 <t:label t:name="title" />
49                             </t:a>
50                         </h2>
51
52                         <t:farkup t:name="content" t:no-follow="true" />
53                     </t:bind>
54                 </div>
55             </t:if>
56         </div>
57
58         <div id="right">
59             <h1 class="title"><t:write-title /></h1>
60             <t:call-next-template />
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         </div>
70
71     </div>
72
73     <span style="display:none"></span>
74
75 </t:chloe>