42 lines
1.7 KiB
HTML
42 lines
1.7 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
{% if title %}
|
||
|
<title>{{ title }} - tfb-groupme-bridge</title>
|
||
|
{% else %}
|
||
|
<title>tfb-groupme-bridge</title>
|
||
|
{% endif %}
|
||
|
|
||
|
<meta charset="utf-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
|
||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
|
||
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<nav class="navbar navbar-inverse">
|
||
|
<div class="container-fluid">
|
||
|
<div class="navbar-header">
|
||
|
<a class="navbar-brand" href="/groupme">tfb-groupme-bridge</a>
|
||
|
</div>
|
||
|
<ul class="nav navbar-nav navbar-right">
|
||
|
{% if request.session.logged_in %}
|
||
|
<li class="dropdown">
|
||
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#">{{ request.session.groupme_name }} <span class="caret"></span></a>
|
||
|
<ul class="dropdown-menu">
|
||
|
<li><a href="{% url 'logout' %}">Log out</a></li>
|
||
|
</ul>
|
||
|
</li>
|
||
|
{% else %}
|
||
|
<li><a href="{% url 'login' %}"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
|
||
|
{% endif %}
|
||
|
</ul>
|
||
|
</div>
|
||
|
</nav>
|
||
|
<div class="container">
|
||
|
{% block 'body' %}
|
||
|
{% endblock %}
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|