mirror of
https://github.com/tubearchivist/tubearchivist
synced 2024-11-19 15:25:51 +00:00
ignore missing video rating
This commit is contained in:
parent
5edc78a826
commit
45d8b7e218
@ -56,11 +56,13 @@
|
|||||||
<p>Views: {{ video.stats.view_count|intcomma }}</p>
|
<p>Views: {{ video.stats.view_count|intcomma }}</p>
|
||||||
<p class="thumb-icon like"><img src="{% static 'img/icon-thumb.svg' %}" alt="thumbs-up">: {{ video.stats.like_count|intcomma }}</p>
|
<p class="thumb-icon like"><img src="{% static 'img/icon-thumb.svg' %}" alt="thumbs-up">: {{ video.stats.like_count|intcomma }}</p>
|
||||||
<p class="thumb-icon dislike"><img src="{% static 'img/icon-thumb.svg' %}" alt="thumbs-down">: {{ video.stats.dislike_count|intcomma }}</p>
|
<p class="thumb-icon dislike"><img src="{% static 'img/icon-thumb.svg' %}" alt="thumbs-down">: {{ video.stats.dislike_count|intcomma }}</p>
|
||||||
|
{% if video.stats.average_rating %}
|
||||||
<p class="rating-stars">Rating:
|
<p class="rating-stars">Rating:
|
||||||
{% for star in video.stats.average_rating %}
|
{% for star in video.stats.average_rating %}
|
||||||
<img src="/static/img/icon-star-{{ star }}.svg" alt="{{ star }}">
|
<img src="/static/img/icon-star-{{ star }}.svg" alt="{{ star }}">
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</p>
|
</p>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user