forked from gergely/calendar-social
Allow users to login
This commit is contained in:
@@ -16,6 +16,16 @@
|
||||
<body>
|
||||
<header>
|
||||
<h1>Calendar.social</h1>
|
||||
<nav class="menu">
|
||||
{{ _('Logged in as %(username)s', username=current_user.username) }}
|
||||
<ul>
|
||||
{% if not current_user.is_authenticated %}
|
||||
<li><a href="{{ url_for('security.login') }}">{% trans %}Login{% endtrans %}</a></li>
|
||||
{% else %}
|
||||
<li><a href="{{ url_for('security.logout') }}">{% trans %}Logout{% endtrans %}</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
{% block content %}{% endblock %}
|
||||
<footer>
|
||||
|
5
app/templates/index.html
Normal file
5
app/templates/index.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
{{ _('Welcome to Calendar.social, %(username)s!', username=current_user.username) }}
|
||||
{% endblock content %}
|
Reference in New Issue
Block a user