106 lines
5.2 KiB
HTML
106 lines
5.2 KiB
HTML
{% load static %}
|
|
{% load i18n %}
|
|
{% load l10n %}
|
|
{% load humanize %}
|
|
{% load admin_url %}
|
|
{% load mastodon %}
|
|
{% load oauth_token %}
|
|
{% load truncate %}
|
|
{% load thumb %}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{ site_name }} - {% trans '删除电影/剧集' %}</title>
|
|
<script src="https://static.neodb.social/cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
|
<script src="{% static 'lib/js/rating-star.js' %}"></script>
|
|
<script src="{% static 'js/rating-star-readonly.js' %}"></script>
|
|
<link rel="stylesheet" href="{% static 'lib/css/rating-star.css' %}">
|
|
<link rel="stylesheet" href="{% static 'css/boofilsic.min.css' %}">
|
|
</head>
|
|
|
|
<body>
|
|
<div id="page-wrapper">
|
|
<div id="content-wrapper">
|
|
{% include "partial/_navbar.html" %}
|
|
|
|
<section id="content">
|
|
<div class="grid">
|
|
<div class="single-section-wrapper" id="main">
|
|
<h5>{% trans '确认删除这部电影/剧集吗?相关评论和标记将一并删除。' %}</h5>
|
|
|
|
<div class="entity-card entity-card--horizontal">
|
|
<div class="entity-card__img-wrapper">
|
|
<a href="{% url 'movies:retrieve' movie.id %}">
|
|
<img src="{{ movie.cover|thumb:'normal' }}" alt="" class="item-image float-left">
|
|
</a>
|
|
</div>
|
|
<div class="entity-card__info-wrapper entity-card__info-wrapper--horizontal">
|
|
<a href="{% url 'movies:retrieve' movie.id %}">
|
|
<h5 class="entity-card__title">
|
|
{% if movie.season %}
|
|
{{ movie.title }} {% trans '第' %}{{ movie.season|apnumber }}{% trans '季' %} {{ movie.orig_title }} Season
|
|
{{ movie.season }}
|
|
{% if movie.year %}({{ movie.year }}){% endif %}
|
|
{% else %}
|
|
{{ movie.title }} {{ movie.orig_title }}
|
|
{% if movie.year %}({{ movie.year }}){% endif %}
|
|
{% endif %}
|
|
<a href="{{ movie.source_url }}"><span class="source-label source-label__{{ movie.source_site }}">{{ movie.get_source_site_display }}</span></a>
|
|
</h5>
|
|
</a>
|
|
{% if movie.rating %}
|
|
{% trans '评分:' %}<span class="entity-card__rating-star rating-star" data-rating-score="{{ movie.rating | floatformat:"0" }}">
|
|
</span>
|
|
<span class="entity-card__rating-score">{{ movie.rating }}</span>
|
|
{% else %}
|
|
<span>{% trans '评分:暂无评分' %}</span>
|
|
{% endif %}
|
|
|
|
{% if movie.last_editor %}
|
|
<div>
|
|
{% trans '最近编辑者:' %}
|
|
<a href="{% url 'users:home' movie.last_editor.mastodon_username %}">
|
|
<span>{{ movie.last_editor | default:"" }}</span>
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div>{% trans '上次编辑时间:' %}{{ movie.edited_time }}</div>
|
|
|
|
{% if movie.movie_marks.all %}
|
|
<div><strong>{% trans '这个条目有' %} <a href="javascript:void();">{{ movie.movie_marks.count }}</a> 个标记</strong></div>
|
|
{% endif %}
|
|
{% if movie.movie_reviews.all %}
|
|
<div><strong>{% trans '这个条目有' %} <a href="javascript:void();">{{ movie.movie_reviews.count }}</a> 个评论</strong></div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
</div>
|
|
<div class="dividing-line"></div>
|
|
<div class="clearfix">
|
|
<form action="{% url 'movies:delete' movie.id %}" method="post" class="float-right">
|
|
{% csrf_token %}
|
|
<input class="button" type="submit" value="{% trans '确认' %}">
|
|
</form>
|
|
<button onclick="history.back()" class="button button-clear float-right">{% trans '返回' %}</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
</div>
|
|
{% include "partial/_footer.html" %}
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
</script>
|
|
</body>
|
|
|
|
|
|
</html>
|