diff options
author | dk-15 | 2017-05-20 11:03:07 +0530 |
---|---|---|
committer | dk-15 | 2017-05-20 11:05:45 +0530 |
commit | f594b69dd6db5a693c648041264978f2aaeefd23 (patch) | |
tree | 9c00674c50c532de3aa945fc2b724e21390fe061 | |
parent | 6cbcd3dc63774e6feed3a95be798d2c60c992137 (diff) | |
download | SBHS-2018-Rpi-f594b69dd6db5a693c648041264978f2aaeefd23.tar.gz SBHS-2018-Rpi-f594b69dd6db5a693c648041264978f2aaeefd23.tar.bz2 SBHS-2018-Rpi-f594b69dd6db5a693c648041264978f2aaeefd23.zip |
Add link to admin panel in account/home page
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | templates/account/sub_nav.html | 3 |
2 files changed, 4 insertions, 0 deletions
@@ -2,3 +2,4 @@ sbhs_server/*/*.pyc sbhs_server/credentials.py log/ +static/img/webcam/ 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> |