init
This commit is contained in:
53
templates/site/index.html
Normal file
53
templates/site/index.html
Normal file
@@ -0,0 +1,53 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}站点管理 - PT Manager{% endblock %}
|
||||
|
||||
{% block page_title %}站点管理{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="bg-white rounded-lg shadow-md p-6">
|
||||
<h2 class="text-xl font-semibold mb-6">NexusPHP 站点管理</h2>
|
||||
|
||||
{% if sites %}
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||
{% for site in sites %}
|
||||
<div class="border border-gray-200 rounded-lg p-4 hover:shadow-md transition-shadow">
|
||||
<div class="flex justify-between items-start">
|
||||
<h3 class="font-medium text-gray-900 text-lg">{{ site.name }}</h3>
|
||||
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800">
|
||||
在线
|
||||
</span>
|
||||
</div>
|
||||
<p class="text-gray-600 text-sm mt-1">{{ site.url }}</p>
|
||||
<div class="flex space-x-2 mt-4">
|
||||
<a href="{{ url_for('site.profile', site_id=site.id) }}"
|
||||
class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded text-sm">
|
||||
个人信息
|
||||
</a>
|
||||
<a href="{{ url_for('site.torrents', site_id=site.id) }}"
|
||||
class="bg-green-600 hover:bg-green-700 text-white font-bold py-2 px-4 rounded text-sm">
|
||||
种子列表
|
||||
</a>
|
||||
<a href="{{ url_for('site.bookmarks', site_id=site.id) }}"
|
||||
class="bg-yellow-600 hover:bg-yellow-700 text-white font-bold py-2 px-4 rounded text-sm">
|
||||
个人收藏
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="text-center py-12">
|
||||
<i class="fas fa-globe text-gray-400 text-4xl mb-4"></i>
|
||||
<h3 class="text-lg font-medium text-gray-900 mb-1">暂无站点配置</h3>
|
||||
<p class="text-gray-500">请在设置中添加NexusPHP站点</p>
|
||||
<div class="mt-6">
|
||||
<a href="{{ url_for('settings.settings_index') }}"
|
||||
class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
|
||||
去设置站点
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user