mirror of https://github.com/snachodog/mybuddy.git
Remove functions/filters from blocktrans tags in templates.
This commit is contained in:
parent
b2b6b06ad9
commit
1e83fa2902
|
@ -5,7 +5,7 @@
|
|||
|
||||
{% block title %}
|
||||
{% if change %}
|
||||
{% blocktrans %}{{ change.time|timesince }} ago{% endblocktrans %}
|
||||
{% blocktrans with time=change.time|timesince %}{{ time }} ago{% endblocktrans %}
|
||||
{% else %}
|
||||
{% trans "Never" %}
|
||||
{% endif %}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
{% block title %}
|
||||
{% if feeding %}
|
||||
{% blocktrans %}{{ feeding.end|timesince }} ago{% endblocktrans %}
|
||||
{% blocktrans with time=feeding.end|timesince %}{{ time }} ago{% endblocktrans %}
|
||||
{% else %}
|
||||
{% trans "Never" %}
|
||||
{% endif %}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
{% block title %}
|
||||
{% if sleep %}
|
||||
{% blocktrans %}{{ sleep.end|timesince }} ago{% endblocktrans %}
|
||||
{% blocktrans with time=sleep.end|timesince %}{{ time }} ago{% endblocktrans %}
|
||||
{% else %}
|
||||
{% trans "Never" %}
|
||||
{% endif %}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
{% block title %}
|
||||
{% if count %}
|
||||
{% blocktrans %}{{ count }} nap{{ count|pluralize }}{% endblocktrans %}
|
||||
{% blocktrans with plural=count|pluralize %}{{ count }} nap{{ plural }}{% endblocktrans %}
|
||||
{% else %}
|
||||
<i class="icon icon-sad" aria-hidden="true"></i>
|
||||
{% trans "None yet today" %}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
{% block title %}
|
||||
{% with instances|length as count %}
|
||||
{% blocktrans %}{{ count }} active timer{{ count|pluralize }}{% endblocktrans %}
|
||||
{% blocktrans with plural=count|pluralize %}{{ count }} active timer{{ plural }}{% endblocktrans %}
|
||||
{% endwith %}
|
||||
{% endblock %}
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
|||
class="list-group-item list-group-item-action">
|
||||
<strong>{{ instance }}</strong>
|
||||
<p class="text-muted small m-0">
|
||||
{% blocktrans %}Started by {{ instance.user }} at {{ instance.start|time }}{% endblocktrans %}
|
||||
{% blocktrans with start=instance.start|time %}Started by {{ instance.user }} at {{ start }}{% endblocktrans %}
|
||||
</p>
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<ul class="list-group list-group-flush text-muted small">
|
||||
{% for instance in instances %}
|
||||
<li class="list-group-item">
|
||||
{% blocktrans %}{{ instance.duration|duration_string }} at {{ instance.end|time }}{% endblocktrans %}
|
||||
{% blocktrans with duration=instance.duration|duration_string end=instance.end|time %}{{ duration }} at {{ end }}{% endblocktrans %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
{% block title %}
|
||||
{% if tummytime %}
|
||||
{% blocktrans %}{{ tummytime.time|timesince }} ago{% endblocktrans %}
|
||||
{% blocktrans with time=tummytime.time|timesince %}{{ time }} ago{% endblocktrans %}
|
||||
{% else %}
|
||||
{% trans "Never" %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue