{% block title %}
Local Library
{% endblock %}
{% load static %}
{% block sidebar %}
Home
All book copies
All books
All authors
All genres
All languages
{% if user.is_authenticated %}
User: {{ user.get_username }}
My borrowed
{% csrf_token %}
Logout
{% else %}
Login
{% endif %}
{% if user.is_staff %}
Staff
All borrowed
{% if perms.catalog.add_genre %}
Create genre
{% endif %} {% if perms.catalog.add_language %}
Create language
{% endif %} {% if perms.catalog.add_author %}
Create author
{% endif %} {% if perms.catalog.add_book %}
Create book
{% endif %} {% if perms.catalog.add_bookinstance %}
Create copy of book
{% endif %}
{% endif %} {% endblock %}
{% block content %}{% endblock %} {% block pagination %} {% if is_paginated %}
{% if page_obj.has_previous %}
previous
{% endif %}
Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}.
{% if page_obj.has_next %}
next
{% endif %}
{% endif %} {% endblock %}