File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 77 < div class ="navbar-menu ">
88 < div class ="navbar-start ">
99 {% if user.person %}
10- < a class ="navbar-item " href ="{% url 'home-page' %} ">
10+ < a class ="navbar-item {% if request.path == '/' %}is-active{% endif %} " href ="{% url 'home-page' %} ">
1111 My Packages
1212 </ a >
1313 {% endif %}
14- < a class ="navbar-item " href ="{% url 'purl-list' %} ">
14+ < a class ="navbar-item {% if request.path == '/purl-list' %}is-active{% endif %} " href ="{% url 'purl-list' %} ">
1515 All Packages
1616 </ a >
1717 < a class ="navbar-item " href ="https://federatedcode.readthedocs.io/en/latest/ " target ="_blank ">
4242 </ div >
4343
4444 < div class ="navbar-dropdown is-right mr-2 ">
45+ {% if request.path == '/users/@'|add:user.username %}
46+ < a class ="navbar-item is-active-light " href ="{% url 'user-profile' user.username %} "
47+ style ="background-color: #dcdcdc; ">
48+ < strong > Profile</ strong >
49+ </ a >
50+ {% else %}
4551 < a class ="navbar-item " href ="{% url 'user-profile' user.username %} ">
4652 < strong > Profile</ strong >
4753 </ a >
54+ {% endif %}
4855 < a class ="navbar-item has-text-danger " href ="{% url 'logout' %} ">
4956 < strong > Log out</ strong >
5057 </ a >
You can’t perform that action at this time.
0 commit comments