Skip to content
Snippets Groups Projects
Commit 093c139f authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Update web-browsable API template

Now show 'Login' button if user is not authenticated.
parent 5dc385a9
No related branches found
No related tags found
No related merge requests found
......@@ -5,14 +5,18 @@
{% block branding %}
GraceDB — REST API
{% if config_name %}
<span style="color: red;">
({{ config_name }})
</span>
<div style="color: red; display: inline;">({{ config_name }})</div>
{% endif %}
{% endblock %}
{% block userlinks %}
{% if user %}<li>Authenticated as: {{ user.first_name }} {{ user.last_name }}</li>{% endif %}
<li>
{% if user.is_authenticated %}
Authenticated as: {{ user.first_name }} {{ user.last_name }}
{% else %}
<a href="{% url "login" %}"><b>Login</b></a>
{% endif %}
</li>
{% endblock %}
{% block breadcrumbs %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment