rat/templates/thread.html.text
2024-02-19 22:59:14 +08:00

50 lines
2.1 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{ info.thread.title }} - {{ info.thread.fname }}吧 - RAT</title>
</head>
<body>
<pre>
------------------------------------------------------------------------
<a href="/f?kw={{ info.forum.fname }}">[{{ info.forum.fname }}吧]</a> {{ info.thread.title|twrap(width=60) }}
------------------------------------------------------------------------
<a {% if not ao %} class="current-sel" {% endif %} href="/p/{{ info.thread.tid }}?ao=0">[全部回复]</a> <a {% if ao %} class="current-sel" {% endif %} href="/p/{{ info.thread.tid }}?ao=1">[仅看楼主]</a></pre>
{% for p in info %}
<pre>
<a href="#{{ p.floor }}">#{{ p.floor }}</a> | <a href="/home/main?id={{ p.user.user_id }}">{{ p.user.show_name }}</a>
{{ p.text|twrap(rws=True) }}
{% if p.comments %}{{ '\n' + p.comments|tcomments }}{% endif %}</pre>
{% endfor %}
<pre>------------------------------------------------------------------------</pre>
<a href="/p/{{ info.thread.tid }}?ao={{ao}}">首页</a> |
{% for i in range(5) %}
{% set np = info.page.current_page - 5 + i %}
{% if np > 0 %}
<a href="/p/{{ info.thread.tid }}?pn={{ np }}&ao={{ao}}">{{ np }}</a> |
{% endif %}
{% endfor %}
<strong>{{ info.page.current_page }}</strong> |
{% for i in range(5) %}
{% set np = info.page.current_page + 1 + i %}
{% if np <= info.page.total_page %}
<a href="/p/{{ info.thread.tid }}?pn={{ np }}&ao={{ao}}">{{ np }}</a> |
{% endif %}
{% endfor %}
<a href="/p/{{ info.thread.tid }}?pn={{ info.page.total_page }}&ao={{ao}}">尾页</a>
<pre>
------------------------------------------------------------------------
<a href="/">RAT Ain't Tieba</a> <a href="https://0xacab.org/johnxina/rat/-/raw/no-masters/LICENSE">自豪地以 AGPLv3 释出</a> <a href="https://0xacab.org/johnxina/rat">源代码</a>
------------------------------------------------------------------------
</pre>
</body>
</html>