Adds tag pages
This commit is contained in:
@@ -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 %}
|
||||
|
||||
|
Reference in New Issue
Block a user