41 lines
1.2 KiB
HTML
41 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
{% block title %}<title>Local Library</title>{% endblock %}
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
|
|
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
|
<!-- Add additional CSS in static file -->
|
|
{% load static %}
|
|
<link rel="stylesheet" href="{% static 'css/styles.css' %}">
|
|
</head>
|
|
|
|
<body>
|
|
{% block topnav%}
|
|
<ul class="topnav">
|
|
|
|
{% if user.is_authenticated %}
|
|
<li class="active"><a href="{{user.get_absolute_url}}"></a> {{ user.get_username }}</a></li>
|
|
<li><a href="{% url 'logout'%}?next={{request.path}}">Logout</a></li>
|
|
{% else %}
|
|
<li><a href="{% url 'sign-up'%}?next={{request.path}}">Sign up</a></li>
|
|
<li><a href="{% url 'login'%}?next={{request.path}}">Login</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
{% endblock %}
|
|
|
|
|
|
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
|
|
<div class="col-sm-10 ">{% block content %}{% endblock %}</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</body>
|
|
|
|
</html> |