mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-05-07 11:57:25 +02:00
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:
@@ -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) -->
|
||||
|
||||
Reference in New Issue
Block a user