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-02-28 02:48:10 +00:00
|
|
|
{% blocktrans with percent=goal.percent %}{{ percent }}% complete!{% endblocktrans %}
|
2021-01-16 19:34:19 +00:00
|
|
|
{% endif %}
|
2021-02-11 16:24:20 +00:00
|
|
|
{% if goal.user == request.user %}You've{% else %}{{ goal.user.display_name }} has{% endif %} read {% if request.path != goal.local_path %}<a href="{{ goal.local_path }}">{% endif %}{{ goal.book_count }} of {{ goal.goal | intcomma }} books{% if request.path != goal.local_path %}</a>{% endif %}.
|
2021-01-16 19:34:19 +00:00
|
|
|
</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
|
|
|
|