]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/blogs/blogs-common.xml
webapps: simplify navrow.
[factor.git] / extra / webapps / blogs / blogs-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="$blogs/posts.atom">Recent Posts</t:atom>
6
7     <t:style t:include="resource:extra/webapps/blogs/blogs.css" />
8
9     <nav>
10         <t:a t:href="$blogs/">All Posts</t:a>
11         <t:a t:href="$blogs/by">My Posts</t:a>
12         <t:a t:href="$blogs/new-post">New Post</t:a>
13
14         <t:if t:code="furnace.auth:logged-in?">
15
16             <t:if t:code="furnace.auth.features.edit-profile:allow-edit-profile?">
17                 <t:a t:href="$realm/edit-profile" t:aside="begin">Edit Profile</t:a>
18             </t:if>
19
20             <t:button t:action="$login-realm/logout" t:aside="begin" class="link-button link">Logout</t:button>
21
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>