|
31 | 31 | {% url 'cafeteria' as cafe_url %} |
32 | 32 | {% url 'contact' as contact_url %} |
33 | 33 | {% url 'SDC' as SDC_url %} |
| 34 | +{% url 'qrscan' as qrscan_url %} |
34 | 35 | <div class="logo bg-white py-2 px-0 mx-md-3 mx-0 container-md"> |
35 | 36 | <a href="https://www.iiti.ac.in/" target="_blank" class="row text-decoration-none header mx-0 flex justify-content-center"> |
36 | 37 | <img src="{% static '../static/images/Indian_Institute_of_Technology,_Indore_Logo.png' %}" alt="" height="80px" width="100px" class="col-lg-1 col-2"> |
|
68 | 69 | <li class="nav-item"> |
69 | 70 | <a class="nav-link {% if request.path == contact_url %} active {%endif%}" href="/contact">Contact</a> |
70 | 71 | </li> |
71 | | - <li class="nav-item"> |
| 72 | + <!-- <li class="nav-item"> |
72 | 73 | <a class="nav-link {% if request.path == SDC_url %} active {%endif%}" href="/sdc">SDC</a> |
73 | | - </li> |
| 74 | + </li> --> |
74 | 75 | {% if user.is_authenticated %} |
75 | 76 | {% if user.is_staff%} |
76 | 77 | <li class="nav-item dropdown"> |
|
85 | 86 | </ul> |
86 | 87 | </li> |
87 | 88 | {% else %} |
| 89 | + <li class="nav-item"> |
| 90 | + <a class="nav-link {% if request.path == SDC_url %} active {%endif%}" href="/qrscan/">Mess Card</a> |
| 91 | + </li> |
88 | 92 | <li class="nav-item dropdown"> |
89 | 93 | <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" |
90 | 94 | aria-expanded="false"> |
91 | 95 | hello, {{user.first_name}} |
92 | 96 | </a> |
93 | 97 | <ul class="dropdown-menu me-5" aria-labelledby="navbarDropdown"> |
94 | 98 | <li><a class="dropdown-item" href="/profile/" style="color:rgb(18, 37, 106) ; font-weight: bold; ">Profile</a></li> |
95 | | - <!-- <li><a class="dropdown-item" href="/qrscan/" style="color:rgb(18, 37, 106) ; font-weight: bold; ">Mess Card</a></li> --> |
96 | 99 | <li><a class="dropdown-item" href="/accounts/logout/" style="color:rgb(18, 37, 106) ; font-weight: bold; ">Logout</a></li> |
97 | 100 | </ul> |
98 | 101 | </li> |
|
0 commit comments