Project

General

Profile

« Previous | Next » 

Revision 22ffcdfa

Added by Frédéric Péters over 9 years ago

adapt header to have login or logout links according to user status

View differences:

ckanext/ozwillo_theme/templates/header.html
42 42
          
43 43
                    	<!-- RIGHT NAV -->
44 44
       	   	<ul class="nav navbar-nav navbar-right">
45
{% if c.userobj %}
46
<li class="item-123"><a class="btn navbar-btn" href="{{ h.url_for('/user/_logout') }}">{% trans %}Log out{% endtrans %}</a></li>
47
{% else %}
45 48
<li class="item-123"><a class="btn navbar-btn" href="/user/login">{% trans %}Log in{% endtrans %}</a></li>
49
{% endif %}
46 50
<li class="item-112 deeper dropdown parent"><a class="dropdown-toggle" href="/en/oz/discover" data-toggle="dropdown">{% trans %}Discover{% endtrans %}<b class="caret"></b></a>
47 51
  <ul class="dropdown-menu">
48 52
    <li><a href="/en/oz/discover">{% trans %}Discovering the Platform{% endtrans %}</a></li>

Also available in: Unified diff