view static/tpl/nav.html @ 132:e5d4b61e7a4c

Fixed file-system parsing for Windows.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 03 Dec 2013 09:46:30 -0800
parents e4eba42e1678
children d29e2f337b00
line wrap: on
line source

<section>
    <a href="/">Home</a>
    {{#ifneq action to='read'}}<a href="{{url_read}}">Read</a>{{/ifneq}}
    {{#ifneq action to='edit'}}<a href="{{url_edit}}">Edit</a>{{/ifneq}}
    {{#ifneq action to='history'}}<a href="{{url_hist}}">History</a>{{/ifneq}}
    <form id="search" class="form-search">
        <input type="text" name="q" class="input-medium search-query" placeholder="Search...">
        <button type="submit" class="btn btn-small">Search</button>
    </form>
    {{#if username}}
    <a href="{{url_profile}}">{{username}}</a>
    <a href="{{url_logout}}">Logout</a>
    {{else}}
    <a href="{{url_login}}">Login</a>
    {{/if}}
</section>