Disabled menu selection when not logged in.
[htsworkflow.git] / htsworkflow / frontend / templates / app_base.html
index 1ba9fcdceab0e005587dd2b8375fdeaa6ee541f0..30ef5704d8b64726517748d7966fc4bc1c7dcae2 100644 (file)
@@ -63,9 +63,7 @@
     <div id="left_tbar_data" class="x-hidden">
         {% block left_tbar_menu %}
         <div id="Flowcells-Libraries Tracker" href="{% url htsworkflow.frontend.samples.views.library %}"></div>
-        {% if user.is_authenticated %}
-        <div id="Inventory Tracker" href="{% url htsworkflow.frontend.inventory.views.index %}"></div>
-        {% endif %}
+        <div id="Inventory Tracker" href="{% url htsworkflow.frontend.inventory.views.index %}">{% if user.is_authenticated %}{% else %}disabled{% endif %}</div>
         {% endblock %}
     </div>