modified: app.py

modified:   templates/project_detail.html
	modified:   templates/projects.html
	modified:   versions/version.json
This commit is contained in:
SimolZimol
2026-01-07 01:46:24 +01:00
parent 13ea82a5ca
commit 7ecdde83cc
4 changed files with 180 additions and 27 deletions

View File

@@ -19,16 +19,28 @@
<div class="project-hero-stats">
{% if project.version %}
<div class="hero-stat">
<span class="stat-label">Version</span>
<span class="stat-label">Stable Version</span>
<span class="stat-value">{{ project.version }}</span>
</div>
{% endif %}
{% if project.beta_version %}
<div class="hero-stat">
<span class="stat-label">Beta Version</span>
<span class="stat-value">{{ project.beta_version }}</span>
</div>
{% endif %}
{% if project.status %}
<div class="hero-stat">
<span class="stat-label">Status</span>
<span class="stat-value">{{ project.status }}</span>
</div>
{% endif %}
{% if project.downloads %}
<div class="hero-stat">
<span class="stat-label">Downloads</span>
<span class="stat-value">{{ project.downloads }}</span>
</div>
{% endif %}
{% if project.compatibility %}
<div class="hero-stat">
<span class="stat-label">Compatibility</span>
@@ -38,9 +50,19 @@
</div>
<div class="project-hero-actions">
{% if project.download.stable %}
<a href="{{ project.download.stable }}" target="_blank" class="btn btn-primary">
<i class="fas fa-download"></i> Download Stable
</a>
{% endif %}
{% if project.download.beta %}
<a href="{{ project.download.beta }}" target="_blank" class="btn btn-secondary">
<i class="fas fa-flask"></i> Download Beta
</a>
{% endif %}
{% for link_name, link_url in project.links.items() %}
{% if link_name in ['modrinth', 'spigot', 'github', 'hangar'] %}
<a href="{{ link_url }}" target="_blank" class="btn btn-primary">
<a href="{{ link_url }}" target="_blank" class="btn btn-outline">
{% if link_name == 'github' %}
<i class="fab fa-github"></i> GitHub
{% elif link_name == 'modrinth' %}

View File

@@ -55,16 +55,16 @@
<span class="stat-value">{{ project.version }}</span>
</div>
{% endif %}
{% if project.downloads %}
{% if project.status %}
<div class="stat">
<span class="stat-label">Status</span>
<span class="stat-value">{{ project.downloads }}</span>
<span class="stat-value">{{ project.status }}</span>
</div>
{% endif %}
{% if project.users %}
{% if project.downloads %}
<div class="stat">
<span class="stat-label">Users</span>
<span class="stat-value">{{ project.users }}</span>
<span class="stat-label">Downloads</span>
<span class="stat-value">{{ project.downloads }}</span>
</div>
{% endif %}
</div>