You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
{% extends 'base/base.html' %}
|
|
|
|
{% load static %}
|
|
|
|
{% load thumbnail %}
|
|
|
|
{% load video_tag %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
<div class="classification">
|
|
|
|
<a class="ui {% if c %}{% else %}red{% endif %} label" href="{% url 'home' %}">全部</a>
|
|
|
|
{% for item in classification_list %}
|
|
|
|
<a class="ui {% if c == item.id|stringformat:'s' %}red{% endif %} label" href="?c={{ item.id }}">{{ item.title }}</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="ui hidden divider"></div>
|
|
|
|
<div class="ui grid">
|
|
|
|
{% for item in video_list %}
|
|
|
|
<div class="four wide column">
|
|
|
|
<div class="ui card">
|
|
|
|
<a class="image" href="{% url 'video:detail' item.pk %}">
|
|
|
|
{% thumbnail item.cover "300x200" crop="center" as im %}
|
|
|
|
<img class="ui image" src="{{ im.url }}">
|
|
|
|
{% empty %}
|
|
|
|
{% endthumbnail %}
|
|
|
|
<i class="large play icon v-play-icon"></i>
|
|
|
|
</a>
|
|
|
|
<div class="content">
|
|
|
|
<a class="header" href="{% url 'video:detail' item.pk %}">{{ item.title }}</a>
|
|
|
|
<div class="meta">
|
|
|
|
<span class="date">发布于{{ item.create_time|time_since}}</span>
|
|
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
{{ item.view_count}}次观看
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% empty %}
|
|
|
|
<h3>暂无数据</h3>w
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% include "base/page_nav.html" %}
|
|
|
|
|
|
|
|
{% endblock content %}
|