Remove duplicate view toggle buttons

- Removed duplicate view toggle section that appeared when plugins exist
- Kept single view toggle that's always visible (after plugins section)
- Fixes issue where Grid View, Table View, Plugin Store buttons appeared twice
This commit is contained in:
master3395
2026-01-22 19:49:49 +01:00
parent 7b1181b231
commit 351aefd1a9

View File

@@ -817,26 +817,6 @@
<h2 class="section-title">{% trans "Plugins" %}</h2>
{% if plugins %}
<!-- View Toggle -->
<div class="view-toggle">
<button class="view-btn active" onclick="toggleView('grid')">
<i class="fas fa-th-large"></i>
{% trans "Grid View" %}
</button>
<button class="view-btn" onclick="toggleView('table')">
<i class="fas fa-list"></i>
{% trans "Table View" %}
</button>
<button class="view-btn" onclick="toggleView('store')">
<i class="fas fa-store"></i>
{% trans "CyberPanel Plugin Store" %}
</button>
<a href="/plugins/help/" class="view-btn" style="text-decoration: none;">
<i class="fas fa-book"></i>
{% trans "Plugin Development Guide" %}
</a>
</div>
<!-- Grid View -->
<div id="gridView" class="plugins-grid">
{% for plugin in plugins %}
@@ -1065,6 +1045,7 @@
</a>
</div>
<!-- CyberPanel Plugin Store (always available) -->
<div id="storeView" style="display: {% if not plugins %}block{% else %}none{% endif %};">
<!-- Notice Section (similar to CMSMS Module Manager) -->