add login page
This commit is contained in:
parent
c4f9788d37
commit
8110371a94
7 changed files with 44 additions and 15 deletions
|
@ -1,8 +1,13 @@
|
|||
{% extends "base.html" %}
|
||||
{% block title %} Scholar Clubs {% endblock title%}
|
||||
{% block title %} Home Manager {% endblock title%}
|
||||
{% block content %}
|
||||
<div class="jumbotron">
|
||||
<h1 class="display-4">Welcome</h1>
|
||||
</div>
|
||||
|
||||
{% if user.is_authenticated %}
|
||||
<div class="jumbotron">
|
||||
<h1 class="display-4">Welcome {{ user.username }}</h1>
|
||||
</div>
|
||||
{% else %}
|
||||
<p>You are not logged in</p>
|
||||
<a href="{% url 'login' %}">Log In</a>
|
||||
{% endif %}
|
||||
{% endblock content %}
|
Loading…
Add table
Add a link
Reference in a new issue