Skip to content

Commit 5523636

Browse files
committed
Merge pull request #362 from veuu/patch-1
Making post_detail.html more consistent
2 parents 991877e + 389c964 commit 5523636

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

en/django_forms/README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,16 @@ so that the template will look like:
265265
{% extends 'blog/base.html' %}
266266

267267
{% block content %}
268-
<div class="date">
269-
{% if post.published_date %}
270-
{{ post.published_date }}
271-
{% endif %}
272-
<a class="btn btn-default" href="{% url 'post_edit' pk=post.pk %}"><span class="glyphicon glyphicon-pencil"></span></a>
268+
<div class="post">
269+
{% if post.published_date %}
270+
<div class="date">
271+
{{ post.published_date }}
272+
</div>
273+
{% endif %}
274+
<a class="btn btn-default" href="{% url 'post_edit' pk=post.pk %}"><span class="glyphicon glyphicon-pencil"></span></a>
275+
<h1>{{ post.title }}</h1>
276+
<p>{{ post.text|linebreaks }}</p>
273277
</div>
274-
<h1>{{ post.title }}</h1>
275-
<p>{{ post.text|linebreaks }}</p>
276278
{% endblock %}
277279
```
278280

0 commit comments

Comments
 (0)