{% extends "base.html" %} {% block content %} Home Categories Tags {% if edited %}

Blog successfuly updated

{% endif %} {% if user.is_superuser %}
{% csrf_token %} {{ form.as_p }}
{% endif %}

Add a post Generate blog Generate search index

{% csrf_token %}
{% if drafts|length != 0 %} Drafts {% for draft in drafts %} {% endfor %}
{{ draft.id }}{{ draft.title }}{{ draft.creation_date }}{{ draft.modification_date }}Delete

{% endif %} {% if posts|length == 0 %}

Any post available

{% else %} Posts {% for post in posts %} {% with post.id as cur_id %} {% endwith %} {% endfor %} {% endif %}
{{ post.id }}{{ post.title }}{{ post.category.name }}{{ post.creation_date }}{{ post.modification_date }}{{ post.published }}{{ post.front_page }}{{ comments|hash:cur_id|default_if_none:"0" }} comment{{ comments|hash:cur_id|pluralize }}Delete


{% autoescape off %}
{{ navigation_bar }}
{% endautoescape %} {% endblock %}