/extra/webapps/blogs/blogs-common.xml

http://github.com/abeaumont/factor · XML · 31 lines · 18 code · 13 blank · 0 comment · 0 complexity · db3733e6840ebd6ba56fefa3e5f48d59 MD5 · raw file

  1. <?xml version='1.0' ?>
  2. <t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
  3. <t:atom t:href="$blogs/posts.atom">Recent Posts</t:atom>
  4. <t:style t:include="resource:extra/webapps/blogs/blogs.css" />
  5. <div class="navbar">
  6. <t:a t:href="$blogs/">All Posts</t:a>
  7. | <t:a t:href="$blogs/by">My Posts</t:a>
  8. | <t:a t:href="$blogs/new-post">New Post</t:a>
  9. <t:if t:code="furnace.auth:logged-in?">
  10. <t:if t:code="furnace.auth.features.edit-profile:allow-edit-profile?">
  11. | <t:a t:href="$realm/edit-profile" t:aside="begin">Edit Profile</t:a>
  12. </t:if>
  13. | <t:button t:action="$login-realm/logout" t:aside="begin" class="link-button link">Logout</t:button>
  14. </t:if>
  15. </div>
  16. <h1><t:write-title /></h1>
  17. <t:call-next-template />
  18. </t:chloe>