git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
was trying to show user logged in - not working yet
[unfold.git]
/
templates
/
widget-topmenu.html
diff --git
a/templates/widget-topmenu.html
b/templates/widget-topmenu.html
index
930cca3
..
47f43bf
100644
(file)
--- a/
templates/widget-topmenu.html
+++ b/
templates/widget-topmenu.html
@@
-16,7
+16,12
@@
{% endif %}
{% endfor %}
</ul>
{% endif %}
{% endfor %}
</ul>
- <p class="navbar-text pull-right">Logged in as <a href="#">username</a></p>
+ <p class="navbar-text pull-right">
+ {% if username %}
+ Logged in as <a href="/logout/">{{ username }}</a></p>
+ {% else %}
+ Not logged in
+ {% endif %}
</div><!--/.nav-collapse -->
</div><!--container-fluid-->
</div><!--navbar-inner-->
</div><!--/.nav-collapse -->
</div><!--container-fluid-->
</div><!--navbar-inner-->