130 lines
3.8 KiB
HTML
130 lines
3.8 KiB
HTML
{% load static %}
|
|
{% load i18n %}
|
|
{% load admin_url %}
|
|
{% load mastodon %}
|
|
{% load oauth_token %}
|
|
{% load truncate %}
|
|
{% load thumb %}
|
|
<!DOCTYPE html>
|
|
<html lang="zh" class="content-page">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{ site_name }} - {{ item.title }} - {% trans '评论' %}</title>
|
|
{% include "common_libs.html" with jquery=0 v2=1 %}
|
|
<style type="text/css">#id_visibility, #id_visibility li {padding-left:0; margin-bottom:0; display: inline-block !important;}</style>
|
|
</head>
|
|
<body>
|
|
{% include "_header.html" %}
|
|
<main>
|
|
<div>
|
|
<article>
|
|
<form method="post" class="review-form">
|
|
{% csrf_token %}
|
|
{{ form.item }}
|
|
<div>{{ form.title.label }}</div>
|
|
{{ form.title }}
|
|
<div class="clearfix">
|
|
<span class="float-left">{{ form.body.label }}</span>
|
|
</div>
|
|
<div class="markdown-content">{{ form.body }}</div>
|
|
<hr>
|
|
<div class="grid">
|
|
<div>
|
|
<label for="leading_space" style="display: inline">
|
|
<input type="checkbox" name="leading_space" value="1" id="leading_space">
|
|
保存时<span data-tooltip="希望行首缩进但不便输全角时可选此替换两半角为一全角">将行首空格替换为全角</span>
|
|
</label>
|
|
</div>
|
|
<div>{{ form.visibility }}</div>
|
|
<div>{{ form.share_to_mastodon }}{{ form.share_to_mastodon.label }}</div>
|
|
</div>
|
|
<input class="button float-right" type="submit" value="{% trans '提交' %}">
|
|
<div>
|
|
<label for="mark_anotherday">
|
|
更改标记日期:
|
|
<input type="checkbox" name="mark_anotherday" value="1" id="mark_anotherday">
|
|
<input type="date"
|
|
name="mark_date"
|
|
id="mark_date"
|
|
min="1900-01-01"
|
|
max="{{ date_today }}"
|
|
value="{{ date_today }}"
|
|
style="display: none">
|
|
</label>
|
|
</div>
|
|
<script type="text/javascript">
|
|
$("#mark_anotherday").on('click', ()=>{
|
|
if ($("#mark_anotherday:checked").val() == '1') {
|
|
$("#mark_date").show()
|
|
} else {
|
|
$("#mark_date").hide()
|
|
}
|
|
});
|
|
</script>
|
|
{{ form.media }}
|
|
</form>
|
|
<hr>
|
|
<details>
|
|
<summary>Markdown语法参考</summary>
|
|
<pre>
|
|
标题
|
|
====
|
|
|
|
副标题
|
|
------
|
|
|
|
新起段落需隔开一空行
|
|
|
|
段首缩进需使用中文全角空格
|
|
|
|
[链接](https://zh.wikipedia.org/wiki/Markdown)
|
|
**粗体** *斜体* ==高亮== ~~删除~~
|
|
^上^标 ~下~标 [拼(pīn)音(yīn)]
|
|
|
|
> 引用
|
|
> 文本
|
|
>> 多级引用
|
|
|
|
行内 >! 剧透预警 !< (在短评中也可使用)
|
|
|
|
>! 多行
|
|
>! 剧透
|
|
|
|
引用外部图片 
|
|
|
|
上传图片可拖拽图片文件到编辑框,或从剪贴板粘贴
|
|
|
|
---
|
|
|
|
- Bullet
|
|
- Points
|
|
|
|
content in paragraph with footnote[^1] markup.
|
|
[^1]: footnote explain
|
|
|
|
```
|
|
code
|
|
```
|
|
|
|
Table Header | Second Header
|
|
------------- | -------------
|
|
Content Cell | Content Cell
|
|
Content Cell | Content Cell
|
|
|
|
</pre>
|
|
</details>
|
|
</article>
|
|
</div>
|
|
<aside>
|
|
{% include "_sidebar_item.html" with item=item %}
|
|
</aside>
|
|
</main>
|
|
<script>
|
|
$(".spoiler").on('click', function(){
|
|
$(this).toggleClass('revealed');
|
|
})
|
|
</script>
|
|
{% include "partial/_footer.html" %}
|
|
</body>
|
|
</html>
|