Merge pull request #835 from mouse-reeve/soft-remove-tags

Soft removal of tags feature
This commit is contained in:
Mouse Reeve 2021-03-31 11:26:26 -07:00 committed by GitHub
commit 18c1e45508
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -165,32 +165,11 @@
{% include 'snippets/readthrough.html' with readthrough=readthrough %} {% include 'snippets/readthrough.html' with readthrough=readthrough %}
{% endfor %} {% endfor %}
</section> </section>
{% endif %}
{% if request.user.is_authenticated %}
<section class="box"> <section class="box">
{% include 'snippets/create_status.html' with book=book hide_cover=True %} {% include 'snippets/create_status.html' with book=book hide_cover=True %}
</section> </section>
<section class="block">
<form name="tag" action="/tag/" method="post">
<label for="tags" class="is-3">{% trans "Tags" %}</label>
{% csrf_token %}
<input type="hidden" name="book" value="{{ book.id }}">
<input id="tags" class="input" type="text" name="name">
<button class="button" type="submit">{% trans "Add tag" %}</button>
</form>
</section>
{% endif %} {% endif %}
<div class="block">
<div class="field is-grouped is-grouped-multiline">
{% for tag in tags %}
{% include 'snippets/tag.html' with book=book tag=tag user_tags=user_tags %}
{% endfor %}
</div>
</div>
</div> </div>
<div class="column is-one-fifth"> <div class="column is-one-fifth">
{% if book.subjects %} {% if book.subjects %}