Complete project files including setup.sh

This commit is contained in:
2026-01-11 14:17:26 +08:00
commit 0bbe394cb5
29 changed files with 3060 additions and 0 deletions

35
templates/following.html Normal file
View File

@@ -0,0 +1,35 @@
{% extends "base.html" %}
{% block title %}{{ user.username }} 关注的人 - 泸州高中摄影社论坛{% endblock %}
{% block content %}
<div class="container">
<div class="page-header">
<h1>{{ user.username }} 关注的人</h1>
<a href="{{ url_for('users.profile', username=user.username) }}" class="btn btn-secondary">返回主页</a>
</div>
{% if following %}
<div class="users-list">
{% for followed_user in following %}
<div class="user-list-item">
<a href="{{ url_for('users.profile', username=followed_user.username) }}" class="user-avatar">
{{ followed_user.username[0].upper() }}
</a>
<div class="user-list-info">
<a href="{{ url_for('users.profile', username=followed_user.username) }}" class="username">
{{ followed_user.username }}
</a>
<p class="user-stats">{{ followed_user.get_follower_count() }} 粉丝 · {{ followed_user.posts.count() }} 作品
</p>
</div>
</div>
{% endfor %}
</div>
{% else %}
<div class="empty-state">
<p>还没有关注任何人</p>
</div>
{% endif %}
</div>
{% endblock %}