Order plugins and themes alphabetically - #121

This commit is contained in:
Andy Miller
2015-08-28 21:54:36 -06:00
parent 08a8f17ce0
commit c8fcda0372
2 changed files with 2 additions and 4 deletions

View File

@@ -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 }}">

View File

@@ -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 %}