Fuente de plantilla: ver_post_v2.html

{% extends "base_post_v2.html" %} {% load static from staticfiles %} {% block contenedor_post %} <h1>{{ post.titulo}}</h1> <div class="toolbar"> {% if user.is_staff and staff_post %} <a href="/ahkin/wisp_docs/poststaff/{{ post.id }}/change/" target="_blank" class="button-edit">Editar</a> {% elif user.is_staff and is_post_article_staff %} <a href="/ahkin/wisp_docs/postarticlestaff/{{ post.id }}/change/" target="_blank" class="button-edit">Editar</a> {% elif user.is_staff and postarticle %} <a href="/ahkin/wisp_docs/postarticle/{{ post.id }}/change/" target="_blank" class="button-edit">Editar</a> {% elif user.is_staff and is_post_normal %} <a href="/ahkin/wisp_docs/post/{{ post.id }}/change/" target="_blank" class="button-edit">Editar</a> {% endif %} </div> {{ post.noticia|safe}} <hr> <p>{{ post.fecha_creado }} - Visitas: {{ post.visitas }}</p> {% endblock contenedor_post %}