Skip to content

Commit

Permalink
added updated _account_bar.html
Browse files Browse the repository at this point in the history
  • Loading branch information
brosner committed Mar 19, 2012
1 parent 08d37a2 commit 00a313a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pinax_theme_bootstrap_account/templates/_account_bar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<ul class="nav pull-right">
{% if request.user.is_authenticated %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
{{ request.user }}
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="#"><i class="icon-user"></i> Account</a></li>
{% if request.user.is_staff %}
<li><a href="{% url admin:index %}"><i class="icon-cog"></i> Admin</a></li>
{% endif %}
<li class="divider"></li>
<li><a href="{% url account_logout %}"><i class="icon-off"></i> Log out</a></li>
</ul>
</li>
{% else %}
<li><a href="{% url account_login %}">Log in</a></li>
{% if ACCOUNT_OPEN_SIGNUP %}
<li class="navbar-text">or</li>
<li><a href="{% url account_signup %}">Sign up</a></li>
{% endif %}
{% endif %}
</ul>

0 comments on commit 00a313a

Please sign in to comment.