From 9c4bc41bd642ba33ec8cabb3ad66041ebcf4251f Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Tue, 9 Sep 2014 07:58:19 +0300 Subject: [PATCH] Add missing templates (placeholders) --- pages/admin/installer.md | 4 +-- pages/admin/statistics.md | 4 +-- pages/admin/themes.md | 4 +++ pages/admin/users.md | 4 +-- themes/grav/templates/installer.html.twig | 2 +- themes/grav/templates/login.html.twig | 2 +- themes/grav/templates/statistics.html.twig | 2 +- themes/grav/templates/users.html.twig | 38 +--------------------- 8 files changed, 14 insertions(+), 46 deletions(-) diff --git a/pages/admin/installer.md b/pages/admin/installer.md index 91a6a69b..85a7d08d 100644 --- a/pages/admin/installer.md +++ b/pages/admin/installer.md @@ -1,7 +1,7 @@ --- -title: Users +title: Installer access: - admin.users: true + admin.install: true admin.super: true --- diff --git a/pages/admin/statistics.md b/pages/admin/statistics.md index 85a7d08d..9a6f9680 100644 --- a/pages/admin/statistics.md +++ b/pages/admin/statistics.md @@ -1,7 +1,7 @@ --- -title: Installer +title: Statistics access: - admin.install: true + admin.statistics: true admin.super: true --- diff --git a/pages/admin/themes.md b/pages/admin/themes.md index 7f15885b..57d6217a 100644 --- a/pages/admin/themes.md +++ b/pages/admin/themes.md @@ -1,3 +1,7 @@ --- title: Grav Themes + +access: + admin.themes: true + admin.super: true --- diff --git a/pages/admin/users.md b/pages/admin/users.md index d61155fc..91a6a69b 100644 --- a/pages/admin/users.md +++ b/pages/admin/users.md @@ -1,7 +1,7 @@ --- -title: Plugins +title: Users access: - admin.plugins: true + admin.users: true admin.super: true --- diff --git a/themes/grav/templates/installer.html.twig b/themes/grav/templates/installer.html.twig index 25a632d5..4866ee0d 100644 --- a/themes/grav/templates/installer.html.twig +++ b/themes/grav/templates/installer.html.twig @@ -5,7 +5,7 @@

- Users + Installer

{% include 'partials/messages.html.twig' %} diff --git a/themes/grav/templates/login.html.twig b/themes/grav/templates/login.html.twig index 5fc206b7..5726f1c7 100644 --- a/themes/grav/templates/login.html.twig +++ b/themes/grav/templates/login.html.twig @@ -9,7 +9,7 @@ {% include 'partials/messages.html.twig' %}
- {% for field in page.header.form %} + {% for field in page.header.form.fields %} {% if field.type %}
{% include ["forms/fields/#{field.type}/#{field.type}.html.twig", 'forms/fields/text/text.html.twig'] %} diff --git a/themes/grav/templates/statistics.html.twig b/themes/grav/templates/statistics.html.twig index 25a632d5..193af126 100644 --- a/themes/grav/templates/statistics.html.twig +++ b/themes/grav/templates/statistics.html.twig @@ -5,7 +5,7 @@

- Users + Statistics

{% include 'partials/messages.html.twig' %} diff --git a/themes/grav/templates/users.html.twig b/themes/grav/templates/users.html.twig index 51003824..25a632d5 100644 --- a/themes/grav/templates/users.html.twig +++ b/themes/grav/templates/users.html.twig @@ -4,47 +4,11 @@ {% block content %}
- {% if not admin.route %}

- Plugins + Users

{% include 'partials/messages.html.twig' %} - - - {% for plugin in admin.plugins %} - {% set blueprints = plugin.blueprints() %} - - - - - - {% endfor %} -
- {{ blueprints.get('name') }} - - - - - - -
- {% else %} - {% set plugin = admin.plugins[admin.route] %} - {% set blueprints = plugin.blueprints() %} - -

- {{ blueprints.get('name')|e }} - {{ blueprints.get('version') ? 'v' ~ blueprints.get('version')|e }} -

- - {% include 'partials/messages.html.twig' %} -

{{ blueprints.get('description') }}

- - {% include 'partials/blueprints.html.twig' with { data: plugin } %} - {% endif %}
{% endblock %}