Dropdown menu for user stuff

This commit is contained in:
Eryn Wells 2012-08-18 11:19:21 -07:00
parent 2184fab678
commit e044dbf19a
2 changed files with 13 additions and 1 deletions

View file

@ -17,3 +17,8 @@ h1.placeholder {
{% block graph %}<h1 class="placeholder">PUT A GRAPH HERE</h1>{% endblock %}
</div>
{% endblock container %}
{% block body_js %}
<script src="{{ STATIC_URL }}js/jquery.js"></script>
<script src="{{ STATIC_URL }}bootstrap/js/bootstrap-dropdown.js"></script>
{% endblock %}

View file

@ -7,7 +7,14 @@
<li><a href="{% url index %}">Followers</a></li>
</ul>
<ul class="nav pull-right">
<li><a href="">Logout</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
{{ request.user.username }}
</a>
<ul class="dropdown-menu">
<li><a href="#">Logout</a></li>
</ul>
</li>
</ul>
</div>
</div>