Skip to content

Commit

Permalink
Merge pull request #241 from HonzaKral/patch-date-div
Browse files Browse the repository at this point in the history
Don't include empty date div if there is no date
  • Loading branch information
bmispelon committed Jan 25, 2015
2 parents de3106d + 4e7743a commit df11cda
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions en/extend_your_application/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,11 @@ It will look like this:
{% extends 'blog/base.html' %}

{% block content %}
<div class="date">
{% if post.published_date %}
{% if post.published_date %}
<div class="date">
{{ post.published_date }}
{% endif %}
</div>
</div>
{% endif %}
<h1>{{ post.title }}</h1>
<p>{{ post.text|linebreaks }}</p>
{% endblock %}
Expand Down
8 changes: 4 additions & 4 deletions pl/extend_your_application/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ Jego treść będzie wyglądać tak:
{% extends 'blog/base.html' %}

{% block content %}
<div class="date">
{% if post.published_date %}
{% if post.published_date %}
<div class="date">
{{ post.published_date }}
{% endif %}
</div>
</div>
{% endif %}
<h1>{{ post.title }}</h1>
<p>{{ post.text|linebreaks }}</p>
{% endblock %}
Expand Down
10 changes: 5 additions & 5 deletions uk/extend_your_application/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@
{% extends 'blog/base.html' %}

{% block content %}
<div class="date">
{% if post.published_date %}
{% if post.published_date %}
<div class="date">
{{ post.published_date }}
{% endif %}
</div>
</div>
{% endif %}
<h1>{{ post.title }}</h1>
<p>{{ post.text|linebreaks }}</p>
{% endblock %}
Expand Down Expand Up @@ -164,4 +164,4 @@ Ok, можемо перезавантажити нашу сторінку і п
$ git push heroku master


І це все! Вітання :)
І це все! Вітання :)

0 comments on commit df11cda

Please sign in to comment.