tried search queries - fial
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
{% extends "base.html" %} {% block content %}
|
||||
|
||||
<div id="tag-cloud">
|
||||
{% load taggit_templatetags2_tags %}
|
||||
{% get_taglist as tags for 'application.post' %}
|
||||
<div id="">
|
||||
<ul>
|
||||
{% for tag in tags %}
|
||||
<li>{{tag}} ({{tag.num_times}})</li>
|
||||
<li>{{tag}} ({{tag.num_times}})
|
||||
</li>
|
||||
{{ result }}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
</div>
|
||||
{% else %}
|
||||
<a class="btn btn-outline-dark" href="{% url 'post_publish' pk=post.pk %}">Publish</a>
|
||||
{% endif %}
|
||||
{% if user.is_staff and user == post.author %}
|
||||
{% endif %} {% if user.is_staff and user == post.author %}
|
||||
<a class="btn btn-outline-dark" href="{% url 'post_edit' pk=post.pk %}">
|
||||
<span class="glyphicon glyphicon-pencil">Edit</span>
|
||||
</a>
|
||||
@@ -17,7 +16,13 @@
|
||||
{% endif %}
|
||||
<h1>{{ post.title }}</h1>
|
||||
<p>{{ post.text|linebreaksbr }}</p>
|
||||
<p>{{ post.tag }}</p>
|
||||
|
||||
<p>
|
||||
{% for tag in post.tags.all %}
|
||||
<a href="{% url 'blog_search_list_view' %}">{{ tag.name }}, </a>
|
||||
{% endfor %}
|
||||
</p>
|
||||
<p>
|
||||
Autor: {{ post.author }}
|
||||
</p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -18,14 +18,5 @@
|
||||
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% include "taggit_templatetags2/tagcanvas_include_js_static.html" %}
|
||||
|
||||
<div id="tag-cloud">
|
||||
<ul>
|
||||
{% for tag in tags %}
|
||||
<li>{{tag}} ({{tag.num_times}})</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user