summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates
diff options
context:
space:
mode:
Diffstat (limited to 'hyperkitty/templates')
-rw-r--r--hyperkitty/templates/base.html10
-rw-r--r--hyperkitty/templates/login.html2
2 files changed, 8 insertions, 4 deletions
diff --git a/hyperkitty/templates/base.html b/hyperkitty/templates/base.html
index 85b044e..93e0a6c 100644
--- a/hyperkitty/templates/base.html
+++ b/hyperkitty/templates/base.html
@@ -23,11 +23,13 @@
<ul class="nav auth">
{% if user.is_authenticated %}
- <li><a class="mm_logout" href="{% url user_logout %}">Logout</a></li>
- <li><a href="{% url user_profile %}">{{ user.username }}</a></li>
+ <li><a class="mm_logout" href="{% url user_logout %}">Logout</a></li>
+ <li><a href="{% url user_profile %}">{{ user.username }}</a></li>
{% else %}
- <li><a class="mm_user" href="{% url user_login %}?next={{next|default:request.path|urlencode}}">Login</a></li>
- <li><a href="{% url user_registration %}?next={{next|default:request.path|urlencode}}"> Sign Up </a></li>
+ <li><a class="mm_user" href="{% url user_login %}?next={{next|default:request.path|urlencode}}">Login</a></li>
+ {% if use_internal_auth %}
+ <li><a href="{% url user_registration %}?next={{next|default:request.path|urlencode}}"> Sign Up </a></li>
+ {% endif %}
{% endif %}
</ul>
diff --git a/hyperkitty/templates/login.html b/hyperkitty/templates/login.html
index 17d8d4b..e81c8b3 100644
--- a/hyperkitty/templates/login.html
+++ b/hyperkitty/templates/login.html
@@ -27,6 +27,7 @@
</ul>
+{% if use_internal_auth %}
<h2>Login with username and password</h2>
<form action="{{ request.path }}?next={{ next|urlencode }}" method="post" class="form-horizontal">
@@ -38,6 +39,7 @@
</div>
</div>
</form>
+{% endif %}
</div>