mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-02-19 04:58:19 +01:00
Order plugins and themes alphabetically - #121
This commit is contained in:
@@ -5,8 +5,7 @@
|
||||
</h1>
|
||||
|
||||
<table>
|
||||
{% for slug, package in admin.plugins(not installing) %}
|
||||
{% set plugin = package.toArray() %}
|
||||
{% for slug, plugin in admin.plugins(not installing).toArray|ksort %}
|
||||
{% set data = admin.data('plugins/' ~ slug) %}
|
||||
|
||||
<tr data-gpm-plugin="{{ slug|url_encode }}">
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
</h1>
|
||||
|
||||
<div class="themes card-row grid fixed-blocks pure-g">
|
||||
{% for slug, package in admin.themes(not installing) %}
|
||||
{% set theme = package.toArray() %}
|
||||
{% for slug, theme in admin.themes(not installing).toArray|ksort %}
|
||||
{% set state = 'inactive' %}
|
||||
{% if (installing) %}{% set state = 'installing' %}{% endif %}
|
||||
{% if (config.get('system.pages.theme') == slug) %}{% set state = 'active' %}{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user