This commit is contained in:
H.T. Kruitbosch 2017-11-24 17:41:58 +01:00
parent d939e511ea
commit eb283bfeff
3 changed files with 16 additions and 2 deletions

View File

@ -1 +1 @@
__version__ = '0.1.15'
__version__ = '0.1.16'

View File

@ -38,7 +38,7 @@
</li>
{% if user.is_authenticated %}
<li class="rug-nav--meta__item rug-mr-xs">
<a href="#" class=""><span class="rug-icon rug-icon--user rug-mr-xs" aria-hidden="true"></span><span>Welcome {{ user.get_username }}</span><span class="rug-icon rug-icon--caret-down rug-ml-xs"></span></a>
<a href="#" class=""><span class="rug-icon rug-icon--user rug-mr-xs" aria-hidden="true"></span><span>Welcome {{ user.get_username }}</span></a>
{% comment %}<div class="rug-nav--meta__flyout">
<ul class="rug-list--unstyled">
<li>
@ -47,6 +47,10 @@
</ul>{% endcomment %}
</div>
</li>
{% else %}
<li class="rug-nav--meta__item rug-mr-xs">
<a href="{% url 'saml2_auth' %}" class=""><span class="rug-icon rug-icon--user rug-mr-xs" aria-hidden="true"></span><span>Login</span></a>
</li>
{% endif %}
</ul>
</nav>

View File

@ -5,4 +5,14 @@
{% block content %}
{% if user.is_authenticated %}
<h1>Fantastic, you are logged in!</h1>
<p>Username: {{ user.username }}</p>
<p>First name: {{ user.firsts_name }}</p>
<p>Last name: {{ user.last_name}}</p>
<p>E-mail: {{ user.email}}</p>
{% else %}
<h1>Login and become awesome!</h1>
<p><a href="{% url 'saml2_auth' %}">Login</a></p>
{% endif %}
{% endblock content %}