mirror of
https://github.com/chibicitiberiu/ytsm.git
synced 2024-02-24 05:43:31 +00:00
Added rating and views to video information.
This commit is contained in:
@ -1,3 +1,6 @@
|
||||
{% load humanize %}
|
||||
{% load ratings %}
|
||||
|
||||
<div class="video-gallery container-fluid">
|
||||
<div class="row">
|
||||
{% for video in videos %}
|
||||
@ -11,6 +14,11 @@
|
||||
{% endif %}
|
||||
{{ video.name }}
|
||||
</h5>
|
||||
<p class="card-text small text-muted">
|
||||
<span>{{ video.views | intcomma }} views</span>
|
||||
<span>•</span>
|
||||
<span>{{ video.publish_date | naturaltime }}</span>
|
||||
</p>
|
||||
<p class="card-text">{{ video.description | truncatechars:120 }}</p>
|
||||
</div>
|
||||
<div class="card-footer dropdown show">
|
||||
|
Reference in New Issue
Block a user