diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-23 13:13:43 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-10-23 13:13:43 +0100 |
commit | b05a331a277160634be50edc3e84eca89133f4c1 (patch) | |
tree | c327e7f1bae0b09c3053a1c451a7ec836e132e26 | |
parent | c2df72ca3e378ef9f6d9fd4ba8e402d9cfbfa67f (diff) |
links in header only available if logged-in
-rw-r--r-- | ctrack/organisations/templates/organisations/organisation_detail.html | 2 | ||||
-rw-r--r-- | ctrack/templates/base.html | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/ctrack/organisations/templates/organisations/organisation_detail.html b/ctrack/organisations/templates/organisations/organisation_detail.html index de66217..cc14860 100644 --- a/ctrack/organisations/templates/organisations/organisation_detail.html +++ b/ctrack/organisations/templates/organisations/organisation_detail.html @@ -33,7 +33,7 @@ <div class="card-text"> <div class="row"> {% for p in people %} - <div class="col-md-6 my-2"> + <div class="col-6 my-2"> <div class="card bg-light"> <div class="card-body"> <h5 class="card-title"><a diff --git a/ctrack/templates/base.html b/ctrack/templates/base.html index 8594fb4..3984f51 100644 --- a/ctrack/templates/base.html +++ b/ctrack/templates/base.html @@ -45,7 +45,8 @@ <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav mr-auto"> - <li class="nav-item dropdown"> + {% if request.user.is_authenticated%} + <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="dropdown01" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Organisations</a> <div class="dropdown-menu" aria-labelledby="dropdown01"> @@ -73,10 +74,11 @@ <a class="dropdown-item" href="#">Inspection/Audit Programme</a> </div> </li> + <li class="nav-item"> + <a class="nav-link" href="{% url 'about' %}">Help</a> + </li> + {% endif %} - <li class="nav-item"> - <a class="nav-link" href="{% url 'about' %}">Help</a> - </li> {% if request.user.is_authenticated %} <li class="nav-item"> {# URL provided by django-allauth/account/urls.py #} |