forked from argomaintainer/argon
-
Notifications
You must be signed in to change notification settings - Fork 2
/
post.html
60 lines (58 loc) · 1.77 KB
/
post.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{% extends "base.html" %}
{% block main %}
<div class="cell-group">
{% module PostNav(firstpid, prevpid, nextpid, lastpid, post.pid) %}
<div class="post-wrapper">
<div class="post-head">
<img src="{{ func.url_for_avatar(post.owner) }}"/>
<div class="post-info">
<h2>{{ post.title }}</h2>
<div>
<span> 发信人:<a href="/user/{{ post.owner }}">{{ post.owner }}</a> </span> |
<span> {{ post.fromhost }} <a href="/board/{{ board.boardname }}/"><em>{{ board.boardname }}</em></a> 版 </span> |
<span> <i class="icon-time"></i>{{ post.posttime }}</span> </div>
</div>
</div>
<div class="post-content">
{% raw escape(post.content).replace("\n", "<br/>\n") %}
</div>
<div class="post-sign">
{{ post.signature }}
</div>
<div class="post-meta">
<a href="#">转寄</a>
<a href="#">转贴</a>
<a href="#">删除</a>
<a href="#">修改</a>
<a href="/post/add/{{ post.pid }}">回复</a>
<a href="#">同主题阅读</a>
</div>
</div>
{% module PostNav(firstpid, prevpid, nextpid, lastpid, post.pid) %}
</div>
{% end %}
{% block rightsidebar %}
<div class="cell">
{% if parent %}
<h4>主题第一贴</h4>
<p><a href="/post/{{ root.pid }}">{{ root.title }}</a></p>
<h4>回复的原文</h4>
<p><a href="/post/{{ parent.pid }}">{{ parent.title }}</a></p>
{% else %}
<h4>本文是主题第一贴!</h4>
<a href="#"> >> 同主题阅读</a>
{% end %}
</div>
<div class="cell">
<h4>本文的回复</h4>
{% if children %}
<ul>
{% for li in children %}
<li><a href="/post/{{ li.pid }}">{{ li.title }}</a></li>
{% end %}
</ul>
{% else %}
<p>没有回复,<br/>要<a href="#">发表回复</a>吗? </p>
{% end %}
</div>
{% end %}