mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-06-26 22:09:30 +02:00
feat(plugins): Add installed and active plugin statistics to Installed Plugins page
- Calculate total installed plugins count - Calculate total active/enabled plugins count - Display statistics in page header with icons - Shows 'Installed: X' and 'Active: Y' counts - Statistics only shown when plugins are installed - Improves visibility of plugin status at a glance
This commit is contained in:
@@ -989,6 +989,20 @@
|
||||
{% trans "Installed Plugins" %}
|
||||
</h1>
|
||||
<p>{% trans "List of installed plugins on your CyberPanel" %}</p>
|
||||
{% if plugins %}
|
||||
<div style="margin-top: 15px; display: flex; gap: 20px; flex-wrap: wrap;">
|
||||
<div style="display: flex; align-items: center; gap: 8px; color: var(--text-secondary, #64748b); font-size: 14px;">
|
||||
<i class="fas fa-check-circle" style="color: #10b981;"></i>
|
||||
<strong>{% trans "Installed:" %}</strong>
|
||||
<span style="color: var(--text-primary, #2f3640); font-weight: 600;">{{ total_installed }}</span>
|
||||
</div>
|
||||
<div style="display: flex; align-items: center; gap: 8px; color: var(--text-secondary, #64748b); font-size: 14px;">
|
||||
<i class="fas fa-power-off" style="color: #3b82f6;"></i>
|
||||
<strong>{% trans "Active:" %}</strong>
|
||||
<span style="color: var(--text-primary, #2f3640); font-weight: 600;">{{ total_active }}</span>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<!-- Plugins Section -->
|
||||
|
||||
Reference in New Issue
Block a user