<?xml version='1.0' ?>

<t:chloe xmlns:t="http://factorcode.org/chloe/1.0">

	<t:atom t:href="$wiki/changes.atom">
		Recent Changes
	</t:atom>

	<t:style t:include="resource:extra/webapps/wiki/wiki.css" />

	<table width="100%">
		<tr>
			<t:if t:value="contents">
				<td valign="top" style="width: 210px;">
					<div class="contents">
						<t:bind t:name="contents">
							<h2>
								<t:a t:href="$wiki/view" t:rest="title">
									<t:label t:name="title" />
								</t:a>
							</h2>

							<t:farkup t:name="content" />
						</t:bind>
					</div>
				</td>
			</t:if>

			<td valign="top">

				<div class="navbar">

					<t:a t:href="$wiki">Front Page</t:a>
					| <t:a t:href="$wiki/articles">All Articles</t:a>
					| <t:a t:href="$wiki/changes">Recent Changes</t:a>
					| <t:a t:href="$wiki/random">Random Article</t:a>

					<t:if t:code="furnace.auth:logged-in?">

						<t:if t:code="furnace.auth.features.edit-profile:allow-edit-profile?">
							| <t:a t:href="$realm/edit-profile" t:aside="begin">Edit Profile</t:a>
						</t:if>

						| <t:button t:action="$login-realm/logout" t:aside="begin" class="link-button link">Logout</t:button>

					</t:if>

				</div>

				<h1><t:write-title /></h1>

				<t:call-next-template />

			</td>
		</tr>

		<t:if t:value="footer">
			<tr>
				<td colspan="2" class="footer">
					<t:bind t:name="footer">
						<t:farkup t:name="content" />
					</t:bind>
				</td>
			</tr>
		</t:if>
	</table>

</t:chloe>
