<!DOCTYPE html>
<html>
{{>memex/partial/memex-head}}
<body class="double" lang="en">

{{>memex/partial/memex-topbar}}

<article>

<section id="memex-node">
{{#if indexData}}{{{indexData}}}{{/if}}
{{#unless indexData}}<h1>{{url}}</h1>{{/unless}}

{{>memex/partial/memex-task-listing}}
{{>memex/partial/memex-documents-inline}}
</section>

<div id="sidebar">
<section class="tools">
    {{#if filename}}<h1>{{filename}}</h1>{{/if}}
    {{#unless filename}}<h1>Root</h1>{{/unless}}
    <a rel="nofollow" href="{{urlRoot}}/api/create?url={{url}}" class="verb">New</a>
    <a rel="nofollow" href="{{urlRoot}}/api/upload?url={{url}}" class="verb">Upload</a>
    {{#if indexData}}<a rel="nofollow" href="{{urlRoot}}/api/update?url={{url}}/index.gmi" class="verb">Edit</a>{{/if}}
</section>

{{>memex/partial/memex-documents}}
{{>memex/partial/memex-images}}
{{>memex/partial/memex-directories}}
{{>memex/partial/memex-backlinks}}
</div>
</article>
{{> memex/partial/memex-footer}}
</body>
