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 %}
|
{% block title %}
|
||||||
{% if change %}
|
{% if change %}
|
||||||
{% blocktrans %}{{ change.time|timesince }} ago{% endblocktrans %}
|
{% blocktrans with time=change.time|timesince %}{{ time }} ago{% endblocktrans %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% trans "Never" %}
|
{% trans "Never" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if feeding %}
|
{% if feeding %}
|
||||||
{% blocktrans %}{{ feeding.end|timesince }} ago{% endblocktrans %}
|
{% blocktrans with time=feeding.end|timesince %}{{ time }} ago{% endblocktrans %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% trans "Never" %}
|
{% trans "Never" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if sleep %}
|
{% if sleep %}
|
||||||
{% blocktrans %}{{ sleep.end|timesince }} ago{% endblocktrans %}
|
{% blocktrans with time=sleep.end|timesince %}{{ time }} ago{% endblocktrans %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% trans "Never" %}
|
{% trans "Never" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if count %}
|
{% if count %}
|
||||||
{% blocktrans %}{{ count }} nap{{ count|pluralize }}{% endblocktrans %}
|
{% blocktrans with plural=count|pluralize %}{{ count }} nap{{ plural }}{% endblocktrans %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<i class="icon icon-sad" aria-hidden="true"></i>
|
<i class="icon icon-sad" aria-hidden="true"></i>
|
||||||
{% trans "None yet today" %}
|
{% trans "None yet today" %}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% with instances|length as count %}
|
{% with instances|length as count %}
|
||||||
{% blocktrans %}{{ count }} active timer{{ count|pluralize }}{% endblocktrans %}
|
{% blocktrans with plural=count|pluralize %}{{ count }} active timer{{ plural }}{% endblocktrans %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
class="list-group-item list-group-item-action">
|
class="list-group-item list-group-item-action">
|
||||||
<strong>{{ instance }}</strong>
|
<strong>{{ instance }}</strong>
|
||||||
<p class="text-muted small m-0">
|
<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>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
<ul class="list-group list-group-flush text-muted small">
|
<ul class="list-group list-group-flush text-muted small">
|
||||||
{% for instance in instances %}
|
{% for instance in instances %}
|
||||||
<li class="list-group-item">
|
<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>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
{% if tummytime %}
|
{% if tummytime %}
|
||||||
{% blocktrans %}{{ tummytime.time|timesince }} ago{% endblocktrans %}
|
{% blocktrans with time=tummytime.time|timesince %}{{ time }} ago{% endblocktrans %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% trans "Never" %}
|
{% trans "Never" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue