File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change 1+ {% load static %}
2+
13< nav class ="navbar is-dark mb-6 border-bottom-radius " role ="navigation " aria-label ="main navigation ">
24 < div class ="navbar-brand ml-3 ">
35 < a class ="navbar-item is-size-4 has-text-weight-bold " href ="/ ">
3335 </ div >
3436 </ div >
3537
36- {% if user.person %}
38+ {% if user.person or user.service %}
3739 < div class ="navbar-item has-dropdown is-hoverable ">
3840 < div class ="navbar-link is-arrowless ">
3941 < figure class ="image is-32x32 ">
42+ {% if user.service %}
43+ < img src ="{% static 'images/aboutcode_favicon-32x32.png' %} ">
44+ {% else %}
4045 < img src ="{{ user.person.avatar }} ">
46+ {% endif %}
4147 </ figure >
4248 </ div >
4349
4450 < div class ="navbar-dropdown is-right mr-2 ">
51+ {% if user.person %}
4552 {% if request.path == '/users/@'|add:user.username %}
4653 < a class ="navbar-item is-active-light " href ="{% url 'user-profile' user.username %} "
4754 style ="background-color: #dcdcdc; ">
5259 < strong > Profile</ strong >
5360 </ a >
5461 {% endif %}
62+ {% endif %}
63+ {% if user.service %}
64+ {% if request.path == '/create-repo' %}
65+ < a class ="navbar-item is-active-light " href ="{% url 'repo-create' %} " style ="background-color: #dcdcdc; ">
66+ < strong > Add Repo</ strong >
67+ </ a >
68+ {% else %}
69+ < a class ="navbar-item " href ="{% url 'repo-create' %} ">
70+ < strong > Add Repo</ strong >
71+ </ a >
72+ {% endif %}
73+ {% if request.path == '/repo-list' %}
74+ < a class ="navbar-item is-active-light " href ="{% url 'repo-list' %} " style ="background-color: #dcdcdc; ">
75+ < strong > All Repo</ strong >
76+ </ a >
77+ {% else %}
78+ < a class ="navbar-item " href ="{% url 'repo-list' %} ">
79+ < strong > All Repo</ strong >
80+ </ a >
81+ {% endif %}
82+ {% endif %}
83+
5584 < a class ="navbar-item has-text-danger " href ="{% url 'logout' %} ">
5685 < strong > Log out</ strong >
5786 </ a >
You can’t perform that action at this time.
0 commit comments