1
0
Fork 0

Adds tag pages

This commit is contained in:
Mouse Reeve 2020-02-21 09:10:27 -08:00
parent bc4e65ae81
commit 375ff9365f
7 changed files with 89 additions and 3 deletions

View file

@ -1,5 +1,5 @@
<div class="tag">
{{ tag.name }}
<a href="/tag/{{ tag.identifier }}">{{ tag.name }}</a>
{% if tag.name in user_tags %}
<form class="tag-form" name="tag" action="/untag/" method="post">
{% csrf_token %}

View file

@ -0,0 +1,16 @@
{% extends 'layout.html' %}
{% load fr_display %}
{% block content %}
<div id="content">
<div>
<h2>Books tagged "{{ tag.name }}"</h2>
{% for book in books.all %}
<div class="book-preview">
{% include 'snippets/book.html' with book=book size=large %}
</div>
{% endfor %}
</div>
</div>
{% endblock %}