Created
December 11, 2012 08:29
-
-
Save fitoria/4256917 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%ifequal user.tipo 'profesional'%} | |
<div class="btn-group user-button"> | |
<button class="btn btn-primary"><i class="icon-user"></i>{{user.get_full_name}}</button> | |
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown"> | |
<span class="caret"></span> | |
</button> | |
<ul class="dropdown-menu"> | |
<li><a href="{% url mis-notificaciones %}"><i class=""></i> Notificaciones</a></li> | |
<li><a href="{{user.get_absolute_url}}"><i class=""></i> Ver mi perfil</a></li> | |
<li><a href="{% url perfil-editar user.perfil.id %}"><i class=""></i> Editar mis datos</a></li> | |
<li class="divider"></li> | |
<li><a href="{% url mis-demandas%}"><i class=""></i> Mis Demandas</a></li> | |
<li><a href="{% url demanda-crear%}"><i class=""></i> Crear Demanda</a></li> | |
<li class="divider"></li> | |
<li><a href="{% url auth_logout%}"><i class="icon-off"></i> Cerrar Sesión</a></li> | |
</ul> | |
</div> | |
{%endifequal%} | |
{%ifequal user.tipo 'empresa'%} | |
<div class="btn-group user-button"> | |
<button class="btn btn-warning"><i class="icon-user"></i>{{user.get_full_name}}</button> | |
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown"> | |
<span class="caret"></span> | |
</button> | |
<ul class="dropdown-menu"> | |
<li><a href="{% url mis-notificaciones %}"><i class=""></i> Notificaciones</a></li> | |
<li><a href="{{empresa-detail user.empresa_set.all.0.id}}"><i class=""></i> Ver mi perfil empresarial</a></li> | |
<li><a href="{% url empresa-editar user.empresa_set.all.0.id %}"><i class=""></i> Editar mis datos</a></li> | |
<li class="divider"></li> | |
<li><a href="{% url mis-ofertas%}"><i class=""></i> Mis Ofertas</a></li> | |
<li><a href="{% url oferta-crear%}"><i class=""></i> Crear Oferta</a></li> | |
<li class="divider"></li> | |
<li><a href="{% url auth_logout%}"><i class="icon-off"></i> Cerrar Sesión</a></li> | |
</ul> | |
</div> | |
{%endifequal%} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment