From 445132a8eb281a812db95a6eeaab16d6ef9a1e2d Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Thu, 2 Oct 2014 19:35:33 -0600 Subject: [PATCH] titlebar for plugin details --- blueprints.yaml | 2 +- themes/grav/templates/plugins.html.twig | 27 ++++++++++++++++--------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/blueprints.yaml b/blueprints.yaml index c3539182..7e3deeb2 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,4 +1,4 @@ -name: Administration Panel- Basic +name: Administration Panel - Basic version: 1.0.0 description: Adds an advanced administration panel to manage your site icon: check-square diff --git a/themes/grav/templates/plugins.html.twig b/themes/grav/templates/plugins.html.twig index b821aaa3..cec1987d 100644 --- a/themes/grav/templates/plugins.html.twig +++ b/themes/grav/templates/plugins.html.twig @@ -1,11 +1,23 @@ {% extends 'partials/base.html.twig' %} +{% if admin.route %} +{% set package = admin.plugins[admin.route] %} +{% set plugin = package.toArray() %} +{% endif %} + {% block titlebar %} -
- - -
-

Plugins

+ {% if not admin.route %} +
+ + +
+

Plugins

+ {% else %} +
+ +
+

Plugin: {{ plugin.name|e }}

+ {% endif %} {% endblock %} {% block content %} @@ -37,14 +49,9 @@ {% endfor %} {% else %} - {% set package = admin.plugins[admin.route] %} - {% set plugin = package.toArray() %} - -

{{ plugin.name|e }} {{ plugin.version ? 'v' ~ plugin.version|e }} -{{ dump(plugin) }} {{ plugin.icon }} {{ plugin.homepage }} {{ plugin.author.name }}