summaryrefslogtreecommitdiff
path: root/templates/account/sub_nav.html
diff options
context:
space:
mode:
authordk-152017-05-20 11:03:07 +0530
committerdk-152017-05-20 11:05:45 +0530
commit521eaad4ce61acb56553cfb00e70e9a55916aaac (patch)
tree36c8a5551ba88d0f5a5f1970d21fc185796ff3e6 /templates/account/sub_nav.html
parent9fe3a0234adf464f080098f6dec3b8c1332f2af4 (diff)
downloadSBHS-2018-Rpi-521eaad4ce61acb56553cfb00e70e9a55916aaac.tar.gz
SBHS-2018-Rpi-521eaad4ce61acb56553cfb00e70e9a55916aaac.tar.bz2
SBHS-2018-Rpi-521eaad4ce61acb56553cfb00e70e9a55916aaac.zip
Add link to admin panel in account/home page
Diffstat (limited to 'templates/account/sub_nav.html')
-rw-r--r--templates/account/sub_nav.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/account/sub_nav.html b/templates/account/sub_nav.html
index 17ac8a5..62c617e 100644
--- a/templates/account/sub_nav.html
+++ b/templates/account/sub_nav.html
@@ -5,5 +5,8 @@
<li id="view-slot-nav"><a href="{% url 'slot_index' %}">View/Delete slot</a></li>
<li id="download-log-nav"><a href="{% url 'experiment_logs' %}">Download log files</a></li>
<li id="video-nav"><a href="{% url 'webcam_show_video' %}">Show video</a></li>
+ {% if user.is_admin %}
+ <li id="admin-nav"><a href="{% url 'admin_index' %}">Admin Panel</a></li>
+ {% endif %}
</ul>
</div>