Adds tag pages
This commit is contained in:
parent
bc4e65ae81
commit
375ff9365f
7 changed files with 89 additions and 3 deletions
|
@ -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 %}
|
||||
|
|
16
fedireads/templates/tag.html
Normal file
16
fedireads/templates/tag.html
Normal 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 %}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue