Skip to content

Commit

Permalink
Merge pull request #362 from veuu/patch-1
Browse files Browse the repository at this point in the history
Making post_detail.html more consistent
  • Loading branch information
olasitarska committed May 16, 2015
2 parents 991877e + 389c964 commit 5523636
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions en/django_forms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,14 +265,16 @@ so that the template will look like:
{% extends 'blog/base.html' %}

{% block content %}
<div class="date">
{% if post.published_date %}
{{ post.published_date }}
{% endif %}
<a class="btn btn-default" href="{% url 'post_edit' pk=post.pk %}"><span class="glyphicon glyphicon-pencil"></span></a>
<div class="post">
{% if post.published_date %}
<div class="date">
{{ post.published_date }}
</div>
{% endif %}
<a class="btn btn-default" href="{% url 'post_edit' pk=post.pk %}"><span class="glyphicon glyphicon-pencil"></span></a>
<h1>{{ post.title }}</h1>
<p>{{ post.text|linebreaks }}</p>
</div>
<h1>{{ post.title }}</h1>
<p>{{ post.text|linebreaks }}</p>
{% endblock %}
```

Expand Down

0 comments on commit 5523636

Please sign in to comment.