Skip to content

Commit

Permalink
* Add the document to the blocktrans context.
Browse files Browse the repository at this point in the history
  • Loading branch information
bgroff committed Aug 16, 2018
1 parent 843e470 commit 6a4f8b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions django_kala/projects/templates/projects/project.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ <h4 data-value="Date">{% trans 'Date' %}</h4>
href="{% url 'projects:document' project.pk document.pk %}">{{ document.name }}</a>
<div class="meta">
{% if document.documentversion_set.all.count == 1 %}
<span class="date">{% blocktrans %}Created on {{ document.date }}{% endblocktrans %}</span>
<span class="date">{% blocktrans with document=document %}Created on {{ document.date }}{% endblocktrans %}</span>
{% else %}
<span class="date">{% blocktrans %}Updated on {{ document.date }}{% endblocktrans %}</span>
<span class="date">{% blocktrans with document=document %}Updated on {{ document.date }}{% endblocktrans %}</span>
{% endif %}
by {{ document.documentversion_set.all.0.user }}
</div>
Expand All @@ -154,7 +154,7 @@ <h4 data-value="Date">{% trans 'Date' %}</h4>
<div class="extra content">
<div class="ui top left pointing dropdown">
<i class="git branch icon"></i>
<span class="text">{% blocktrans %}Versions {{ document.documentversion_set.all.count }}{% endblocktrans %}</span>
<span class="text">{% blocktrans with document=document %}Versions {{ document.documentversion_set.all.count }}{% endblocktrans %}</span>
<div class="menu">
<div class="header">
{% trans 'Download version' %}
Expand Down

0 comments on commit 6a4f8b1

Please sign in to comment.