%include header name=name
<body onload = "parent.htmlpage.location='{{name}}.__iframe__'">
<div class="header header_view">
    <div class="text">
        [<a href="/__index__">i</a>]:<a href="/">attowiki</a>:<a href="{{display_name}}">{{display_name}}</a>
    </div>
%if not is_repo:
    <span class="warning">WARNING: no git repository found !!</span>
%end
    <div class="buttons">
        <a href="/edit/" id="btn_new">new page</a>
%if name != '__index__':
        <a href="/edit/{{name}}" id="btn_edit">edit</a>
%end
    </div>
</div>
<div style="width: 100%;position: absolute;top: 21px;left: 0px;bottom: 0;">
    <iframe name="htmlpage" vspace="0" hspace="0"
            style="margin:0;width:100%;height:100%;position: absolute;"
            scrolling="auto" marginwidth="0"
            marginheight="0" frameborder="0">
    </iframe>
</div>
</body>
</html>
