Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% extends "base_generic.html" %}
- {% block content %}
- <h1>Book List</h1>
- {% if book_list %}
- <ul>
- {% for book in book_list %}
- <li>
- <a href="{{ book.get_absolute_url }}">{{ book.title }}</a> ({{book.author}})
- </li>
- {% endfor %}
- </ul>
- {% else %}
- <p>There are no books in the library.</p>
- {% endif %}
- {% endblock %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement