Auto commit: 2026-03-13T16:42:08.880Z
This commit is contained in:
parent
7b2fc4e3b2
commit
749383265f
@ -24,7 +24,23 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
{% block content %}{% endblock %}
|
||||
{% if user.is_authenticated %}
|
||||
<nav class="navbar navbar-expand-lg navbar-light bg-light mb-3">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="{% url 'project_list' %}">AI Business Planning</a>
|
||||
<div class="d-flex align-items-center">
|
||||
<span class="navbar-text me-3">Welcome, {{ user.username }}</span>
|
||||
<form method="post" action="{% url 'logout' %}">
|
||||
{% csrf_token %}
|
||||
<button type="submit" class="btn btn-outline-secondary btn-sm">Logout</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
{% endif %}
|
||||
<div class="container">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user