2021-02-11 16:24:20 +00:00
|
|
|
{% load humanize %}
|
2021-01-16 19:34:19 +00:00
|
|
|
<p>
|
|
|
|
{% if goal.progress_percent >= 100 %}
|
|
|
|
Success!
|
|
|
|
{% elif goal.progress_percent %}
|
|
|
|
{{ goal.progress_percent }}% complete!
|
|
|
|
{% 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
|
|
|
|