|
|
@ -24,13 +24,12 @@ |
|
|
|
<div class="navbar-inner"> |
|
|
|
<div class="navbar-inner"> |
|
|
|
<div class="container-fluid"> |
|
|
|
<div class="container-fluid"> |
|
|
|
<a href="{{request.resource_url(request.root)}}" class="brand">ordr</a> |
|
|
|
<a href="{{request.resource_url(request.root)}}" class="brand">ordr</a> |
|
|
|
{# TODO: |
|
|
|
|
|
|
|
{% if request.user %} |
|
|
|
{% if request.user %} |
|
|
|
<ul class="nav"> |
|
|
|
<ul class="nav"> |
|
|
|
<li {% if is_active %} class="active" {% endif %}><a href="{{request.resource_url(request.root, 'orders')}}">Orders</a></li> |
|
|
|
<li {% if context.nav_highlight == 'orders' %} class="active" {% endif %}><a href="{{request.resource_url(request.root, 'orders')}}">Orders</a></li> |
|
|
|
<li {% if is_active %} class="active" {% endif %}><a href="{{request.resource_url(request.root, 'faq')}}">FAQs</a></li> |
|
|
|
<li {% if context.nav_highlight == 'faq' %} class="active" {% endif %}><a href="{{request.resource_url(request.root, 'faq')}}">FAQs</a></li> |
|
|
|
{% if request.user.role == 'admin' %} |
|
|
|
{% if request.user.role.name == 'ADMIN' %} |
|
|
|
<li {% if is_active %} class="active" {% endif %}><a href="{{request.resource_url(request.root, 'admin')}}">Admin</a></li> |
|
|
|
<li {% if context.nav_highlight == 'admin' %} class="active" {% endif %}><a href="{{request.resource_url(request.root, 'admin')}}">Admin</a></li> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
<ul class="nav pull-right"> |
|
|
|
<ul class="nav pull-right"> |
|
|
@ -47,17 +46,17 @@ |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
{% else %} |
|
|
|
{% else %} |
|
|
|
<ul class="nav"> |
|
|
|
<ul class="nav"> |
|
|
|
<li {% if is_active %} class="active" {% endif %}><a href="{{request.resource_url(request.root, 'register')}}">Register</a></li> |
|
|
|
<li {% if context.nav_highlight == 'register' %} class="active" {% endif %}><a href="{{request.resource_url(request.root, 'register')}}">Register</a></li> |
|
|
|
<li {% if is_active %} class="active" {% endif %}><a href="{{request.resource_url(request.root, 'about')}}">About</a></li> |
|
|
|
<li {% if not context.nav_highlight %} class="active" {% endif %}><a href="{{request.resource_url(request.root, 'about')}}">About</a></li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
<form action="{{request.resource_url(request.root, 'account', 'login')}}" method="post"> |
|
|
|
<form action="{{request.resource_url(request.root, 'account', 'login')}}" method="post" class="navbar-form pull-right"> |
|
|
|
|
|
|
|
<input type="hidden" name="csrf_token" value="{{get_csrf_token()}}"> |
|
|
|
<input type="hidden" name="redirect" value="{{request.url}}" /> |
|
|
|
<input type="hidden" name="redirect" value="{{request.url}}" /> |
|
|
|
<input name="username" type="text" placeholder="Username" class="input-small"> |
|
|
|
<input name="username" type="text" placeholder="Username" class="input-small"> |
|
|
|
<input name="password" type="password" placeholder="Password" class="input-small"> |
|
|
|
<input name="password" type="password" placeholder="Password" class="input-small"> |
|
|
|
<button type="submit" class="btn">Log in</button> |
|
|
|
<button type="submit" class="btn">Log in</button> |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
#} |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</header> |
|
|
|
</header> |
|
|
|