view static/tpl/nav.html @ 63:97efd73f2158

Changed RequireJS paths to make it usable with the optimizer.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 06 Feb 2013 23:48:34 -0800
parents 130eccd396d8
children b03f083c3a29
line wrap: on
line source

<nav class="row">
    <div class="span12">
        {{#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}}
    </div>
</nav>