2021-02-28 02:48:10 +00:00
|
|
|
{% load i18n %}
|
2021-02-11 16:24:20 +00:00
|
|
|
{% load humanize %}
|
2021-01-16 19:34:19 +00:00
|
|
|
<p>
|
|
|
|
{% if goal.progress_percent >= 100 %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% trans "Success!" %}
|
2021-01-16 19:34:19 +00:00
|
|
|
{% elif goal.progress_percent %}
|
2021-03-01 01:10:30 +00:00
|
|
|
{% blocktrans with percent=goal.progress_percent %}{{ percent }}% complete!{% endblocktrans %}
|
|
|
|
{% endif %}
|
|
|
|
{% if goal.user == request.user %}
|
|
|
|
{% blocktrans with read_count=goal.book_count|intcomma goal_count=goal.goal|intcomma path=goal.local_path %}You've read <a href="{{ path }}">{{ read_count }} of {{ goal_count}} books</a>.{% endblocktrans %}
|
|
|
|
{% else %}
|
|
|
|
{% blocktrans with username=goal.user.display_name read_count=goal.book_count|intcomma goal_count=goal.goal|intcomma path=goal.local_path %}{{ username }} has read <a href="{{ path }}">{{ read_count }} of {{ goal_count}} books</a>.{% endblocktrans %}
|
2021-01-16 19:34:19 +00:00
|
|
|
{% endif %}
|
|
|
|
</p>
|
2021-01-16 22:33:43 +00:00
|
|
|
<progress class="progress is-large" value="{{ goal.book_count }}" max="{{ goal.goal }}" aria-hidden="true">{{ goal.progress_percent }}%</progress>
|
2021-01-16 19:34:19 +00:00
|
|
|
|