12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <nav class="navbar navbar-default navbar-static-top">
- <div class="container">
- <div class="navbar-header">
- <button type="button" data-toggle="collapse" data-target="#navbar" class="navbar-toggle collapsed">
- <span class="sr-only">Toggle navigation</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a href="{{ baseurl }}" class="navbar-brand"><img src="{{ baseurl }}/logo2.png" width="180px"></a>
- </div>
- <div id="navbar" class="navbar-collapse collapse">
- <ul class="nav navbar-nav">
- <li class="{% if title == 'Início' %}active{% endif %}"><a href="{{baseurl}}">Início</a></li>
- <!-- <li class="{% if title == 'Sobre' %}active{% endif %}"><a href="{{baseurl}}/sobre">Sobre</a></li> -->
- <li class="{% if title == 'Explorar' %}active{% endif %}"><a href="{{baseurl}}">Explorar</a></li>
- </ul>
- <ul class="nav navbar-nav navbar-right">
- {% if user %}
- <li class="dropdown">
- <a href="#" data-toggle="dropdown" class="navbar-avatar dropdown-toggle">
- {% if user.picture %}
- <img src="{{ user.picture }}">
- {% else %}
- <img src="{{ user.gravatar }}">
- {% endif %}
- {% if user.name %}
- {{ user.name }}
- {% elif user.email %}
- {{ user.email }}
- {% else %}
- {{ user.id }}
- {% endif %}
- <i class="caret"></i>
- </a>
- <ul class="dropdown-menu">
- <li><a href="{{baseurl}}/account">Minha Conta</a></li>
- <li class="divider"></li>
- <li><a href="{{baseurl}}/minhascampanhas">Minhas Campanhas</a></li>
- <li class="divider"></li>
- <li><a href="{{baseurl}}/logout">Sair</a></li>
- </ul>
- </li>
- {% else %}
- <li class="{% if title == 'Entrar' %}active{% endif %}"><a href="{{ baseurl }}/login">Entrar</a></li>
- <li class="{% if title == 'Criar Conta' %}active{% endif %}"><a href="{{ baseurl }}/signup">Criar Conta</a></li>
- {% endif %}
- </ul>
- </div>
- </div>
- </nav>
|