main
syk1209wwz0306 6 months ago
parent 6b42eea9c9
commit eefdcf3282

@ -0,0 +1,87 @@
{% extends 'movie/base.html' %}
{% block content %}
<style>
.poster {
float: left;
margin: 3px 12px 0 0;
overflow: hidden;
text-align: center;
}
.info {
max-width: 800px;
margin-top: 15px;
float: left;
word-wrap: break-word;
overflow: hidden;
}
hr {
-moz-border-bottom-colors: none;
-moz-border-image: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
border-color: #c9302c;
border-style: solid none;
border-width: 1px 0;
margin: 18px 0;
}
</style>
<div class="container">
{% for message in messages %}
{% if message.tags == 'info' %}
<div class="alert alert-success" role="alert">{{ message }}</div>
{% endif %}
{% endfor %}
<div class="alert alert-info" role="alert">基于用户的协同过滤算法给您推荐的10部电影</div>
</div>
{% for movie in movies %}
<div class="container">
{# <div class="movie">#}
<div class="poster">
<a href="{% url 'movie:detail' movie.pk %}" class="item">
<div class="poster_div">
<img src="/static/movie/poster/{{ movie.imdb_id }}.jpg" alt="">
</div>
</a>
</div>
<div class="info">
<p>
电影名:
{{ movie.name }}
</p>
<span>
{% for foo in movie.get_score_int_range %}
{% endfor %}
</span>
<strong style="color:#e09015">{{ movie.get_score }}</strong>
<p style="word-wrap: break-word">
简介:
{{ movie.intro }}
</p>
<p>
类型:
{% for genre in movie.get_genre %}
<a href="{% url 'movie:tag' %}?genre={{ genre }}">{{ genre }}</a>
{% if not forloop.last %}
<span>|</span>
{% endif %}
{% endfor %}
</p>
<p>导演:{{ movie.director }}</p>
<p>主演:{{ movie.actors }}</p>
<p>时长:{{ movie.time }}</p>
<p>发行时间:{{ movie.release_time }}</p>
</div>
{# </div>#}
</div>
<div class="container">
<hr>
</div>
{% endfor %}
{% endblock %}
Loading…
Cancel
Save