]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/pastebin/pastebin-common.xml
webapps: simplify navrow.
[factor.git] / extra / webapps / pastebin / pastebin-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="$pastebin/list.atom">Pastebin</t:atom>
6
7         <t:style t:include="resource:extra/webapps/pastebin/pastebin.css" />
8
9     <nav>
10         <a href="https://factorcode.org"><img src="https://factorcode.org/favicon.ico" width="24" height="24" /></a>
11
12         <t:a t:href="$pastebin">Pastes</t:a>
13         <t:a t:href="$pastebin/new-paste">New Paste</t:a>
14
15         <t:if t:code="furnace.auth:logged-in?">
16
17             <t:if t:code="furnace.auth.features.edit-profile:allow-edit-profile?">
18                 <t:a t:href="$realm/edit-profile" t:aside="begin">Edit Profile</t:a>
19             </t:if>
20
21             <t:button t:action="$login-realm/logout" t:aside="begin" class="link-button link">Logout</t:button>
22         </t:if>
23     </nav>
24
25     <div class="page">
26         <h1><t:write-title /></h1>
27
28         <t:call-next-template />
29     </div>
30
31 </t:chloe>