124 lines
5.7 KiB
HTML
124 lines
5.7 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 }} - {{ title }}</title>
|
||
<script src="https://static.neodb.social/cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
||
<script src="{% static 'js/create_update_review.js' %}"></script>
|
||
<script src="{% static 'lib/js/rating-star.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">
|
||
<div class="entity-card entity-card--horizontal">
|
||
<div class="entity-card__img-wrapper">
|
||
<a href="{% url 'games:retrieve' game.id %}">
|
||
<img src="{{ game.cover|thumb:'normal' }}" alt="" class="item-image float-left">
|
||
</a>
|
||
</div>
|
||
<div class="entity-card__info-wrapper entity-card__info-wrapper--horizontal">
|
||
|
||
<h5 class="entity-card__title"><a href="{% url 'games:retrieve' game.id %}">
|
||
{{ game.title }}
|
||
</a>
|
||
<a href="{{ game.source_url }}"><span class="source-label source-label__{{ game.source_site }}">{{ game.get_source_site_display }}</span></a>
|
||
</h5>
|
||
|
||
<div>
|
||
{% if game.genre %}{% trans '类型:' %}
|
||
{% for genre in game.genre %}
|
||
<span>{{ genre }}</span>{% if not forloop.last %} / {% endif %}
|
||
{% endfor %}
|
||
{% endif %}
|
||
</div>
|
||
|
||
<div>
|
||
{% if game.developer %}{% trans '开发商:' %}
|
||
{% for developer in game.developer %}
|
||
<span>{{ developer }}</span>{% if not forloop.last %} / {% endif %}
|
||
{% endfor %}
|
||
{% endif %}
|
||
</div>
|
||
|
||
<div>{% if game.release_date %}
|
||
{% trans '发行日期:' %}{{ game.release_date }}
|
||
{% endif %}
|
||
</div>
|
||
|
||
{% if game.rating %}
|
||
{% trans '评分:' %}<span class="entity-card__rating-star rating-star" data-rating-score="{{ game.rating | floatformat:"0" }}"> </span>
|
||
<span class="entity-card__rating-score rating-score"> {{ game.rating }} </span>
|
||
{% endif %}
|
||
</div>
|
||
</div>
|
||
<div class="dividing-line"></div>
|
||
|
||
<form action="{{ submit_url }}" method="post" class="review-form">
|
||
{% csrf_token %}
|
||
{{ form.game }}
|
||
<div>
|
||
{{ form.title.label }}
|
||
</div>
|
||
{{ form.title }}
|
||
<div class="clearfix">
|
||
<span class="float-left">
|
||
{{ form.content.label }}
|
||
</span>
|
||
<span class="float-right">
|
||
<span class="review-form__preview-button">{% trans '预览' %}</span>
|
||
</span>
|
||
</div>
|
||
<div id="rawContent">
|
||
{{ form.content }}
|
||
</div>
|
||
<div class="review-form__fyi">{% trans '不知道什么是Markdown?可以参考' %}<a target="_blank" href="https://www.markdownguide.org/">{% trans '这里' %}</a></div>
|
||
<div class="review-form__option">
|
||
<div class="review-form__visibility-radio">
|
||
|
||
{{ form.visibility.label }}{{ form.visibility }}
|
||
</div>
|
||
<div class="review-form__share-checkbox">
|
||
{{ form.share_to_mastodon }}{{ form.share_to_mastodon.label }}
|
||
</div>
|
||
</div>
|
||
<div class="clearfix">
|
||
<input class="button float-right" type="submit" value="{% trans '提交' %}">
|
||
</div>
|
||
{{ form.media }}
|
||
</form>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
</section>
|
||
</div>
|
||
{% include "partial/_footer.html" %}
|
||
</div>
|
||
|
||
|
||
<script>
|
||
|
||
</script>
|
||
</body>
|
||
|
||
|
||
</html>
|