beautifed code and added descriptive comments
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
<!--
|
||||
marked parts of the template is external code
|
||||
import from https://github.com/fizista/django-taggit-templatetags2
|
||||
-->
|
||||
{% extends "base.html" %} {% block content %}
|
||||
|
||||
<!-- imported start -->
|
||||
{% load taggit_templatetags2_tags %}
|
||||
<div class="container">
|
||||
<div class="row equal">
|
||||
<div class="col-md-6" >
|
||||
<div class="col-md-6">
|
||||
<h1> Alle Tags im Überblick<br>
|
||||
</h1>
|
||||
<div class="col-md-8" style="zoom: 1.6">
|
||||
@@ -11,6 +17,8 @@
|
||||
{% include_tagcloud 'application.Post' %}
|
||||
</div>
|
||||
</div>
|
||||
<!-- imported end -->
|
||||
|
||||
<div style="padding-bottom:40px;">
|
||||
</div>
|
||||
Tag-Suche
|
||||
@@ -43,7 +51,6 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h1> Bereits abonnierten Tags
|
||||
@@ -54,14 +61,12 @@
|
||||
{% for tag in tagsuser %}
|
||||
<a class="text-white bg-dark p-3" href="{% url 'post_list_by_tag' tag.slug %}">{{ tag.name }}</a>
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div style="padding-bottom:145px;">
|
||||
</div>
|
||||
<div class="mx-auto">
|
||||
|
||||
<div>
|
||||
Abonniere deine Tags hier!
|
||||
</div>
|
||||
@@ -69,7 +74,6 @@
|
||||
{% csrf_token %} {{form.as_p}}
|
||||
<button type="submit" class="save btn btn-outline-dark">Sichern</button>
|
||||
</form>
|
||||
|
||||
{% if messages %}
|
||||
{% for message in messages %}
|
||||
<div {% if message.tags %} class="{{ message.tags }}" {% endif %}>{{ message }}</div>
|
||||
|
||||
Reference in New Issue
Block a user