{% extends 'home/home.html' %}

{% import 'ui/search_page.html' as pg%}

{% block content %}
    <div class="row">
        <div class="col-md-12">
            <ol class="breadcrumb" style="margin-top:6px;">
                <li>与"{{ key }}"有关的电影，共{{ movie_count }}部</li>
            </ol>
        </div>
        <div class="col-md-12">

            {% for v in page_data.items %}
                <div class="media">
                    <div class="media-left">
                        <a href="{{ url_for('home.play',id=v.id,page=1) }}" target="_blank">
                            <img class="media-object" src="{{ url_for('static',filename='uploads/' + v.logo) }}"
                                 style="width: 200px;height: 130px" alt="{{ v.title }}">
                        </a>
                    </div>
                    <div class="media-body">
                        <h4 class="media-heading">{{ v.title }}<a href="{{ url_for('home.play',id=v.id,page=1) }}"
                                  target="_blank" class="label label-primary pull-right">
                            <span class="glyphicon glyphicon-play"></span>播放影片</a></h4>
                        {{ v.info }}
                    </div>
                </div>
            {% endfor %}

        </div>
        <div class="col-md-12 text-center">
            {# 引入后台页码模板 #}
            {{ pg.page(page_data,'home.search') }}
        </div>
    </div>
{% endblock %}