Post adding and editing forms
[django-girls.git] / blog / templates / blog / post_detail.html
1 {% extends 'blog/base.html' %}
2
3 {% block content %}
4 <div class="post">
5 {% if post.published_date %}
6 <div class="date">
7 {{ post.published_date }}
8 </div>
9 {% endif %}
10 {% if user.is_authenticated %}
11 <a class="btn btn-default" href="{% url 'post_edit' pk=post.pk %}"><span class="glyphicon glyphicon-pencil"></span></a>
12 {% endif %}
13 <h1>{{ post.title }}</h1>
14 <p>{{ post.text|linebreaksbr }}</p>
15 </div>
16 {% endblock %}