test_template_flask/templates/index.html
2026-07-20 20:26:26 +02:00

9 lines
395 B
HTML

{% extends "base.html" %}
{% block title %}Home{% endblock %}
{% block content %}
<h1>Welcome{% if current_user.is_authenticated %}, {{ current_user.username }}{% endif %}!</h1>
{% if not current_user.is_authenticated %}
<p>Please <a href="{{ url_for('auth.login') }}">log in</a> or
<a href="{{ url_for('auth.register') }}">create an account</a>.</p>
{% endif %}
{% endblock %}