rat/templates/bar.html

54 lines
1.5 KiB
HTML
Raw Normal View History

2023-07-11 11:32:13 +00:00
<!DOCTYPE html>
<head>
<title>{{ info['name'] }}吧 - RAT</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/static/css/main.css" rel="stylesheet">
</head>
<body>
<header class="bar-nav">
<img src="/proxy/pic/{{ info['avatar'] }}"></nav>
<div>
<div class="title">{{ info['name'] }}吧</div>
<div class="description">{{ info['desc'] }}</div>
<div class="stats">
<small>关注: {{ info['member']|intsep }}</small>
<small>主题: {{ info['topic']|intsep }}</small>
<small>帖子: {{ info['thread']|intsep }}</small>
</div>
</div>
</header>
<div class="list">
{% for t in threads %}
<div class="thread">
<div class="stats">
<div class="replies">{{ t.reply_num }}</div>
<small>{{ t.last_time|simpledate }}</small>
</div>
<div class="summary">
<div class="title">
{% if t.is_top or t.is_livepost
%}<span class="tag tag-blue">置顶</span>{%
endif %}{% if t.is_good
%}<span class="tag tag-red"></span>{% endif
%}<a href="/p/{{ t.tid }}">{{ t.title }} </a>
</div>
<div>{{ t.text[(t.title|length):]|trim }}</div>
</div>
<div class="participants">
<div>🧑<a href="">{{ t.user.user_name }}</a></div>
<!-- <div>💬<a href=""> API UNAVAILABLE </a></div> -->
</div>
</div>
{% endfor %}
</div>
<footer>
<div><a href="#">RAT Ain't Tieba</a></div>
<div><a href="#">自豪地以 AGPLv3 释出</a></div>
<div><a href="#">源代码</a></div>
</footer>
</body>