NDOJ/templates/user/rating.html

17 lines
678 B
HTML
Raw Permalink Normal View History

2020-01-21 06:35:58 +00:00
{% spaceless %}
2023-01-27 23:11:10 +00:00
<span class="rate-group">
{% if rating_class(rating) == 'rate-target' %}
<svg class="rate-box rate-target" viewBox="0 0 16 16">
<circle cx="8" cy="8" r="7"></circle>
<circle cx="8" cy="8" r="3"></circle>
</svg>
{% else %}
<svg class="rate-box {{ rating_class(rating) }}" viewBox="0 0 16 16">
<circle cx="8" cy="8" r="7"></circle>
<path clip-path="url(#rating-clip)"
d="M0 16v-{{ (rating_progress(rating) * 16)|round(2) }}h16 0v16z"></path>
</svg>
{% endif %}
<span class="rating {{ rating_class(rating) }}">{{ rating.rating|default(rating) }}</span>
</span>
2020-01-21 06:35:58 +00:00
{% endspaceless %}