From 8d69c49da595c60dae51c77d48f397ab97fdf318 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 20 May 2016 12:51:05 -0400 Subject: Manage plugins from the user interface and from the command line --- app/Template/plugin/directory.php | 65 +++++++++++++++++++++++++++------------ app/Template/plugin/remove.php | 13 ++++++++ app/Template/plugin/show.php | 22 +++++++++---- 3 files changed, 74 insertions(+), 26 deletions(-) create mode 100644 app/Template/plugin/remove.php (limited to 'app/Template/plugin') diff --git a/app/Template/plugin/directory.php b/app/Template/plugin/directory.php index 82b9a441..b6c6734c 100644 --- a/app/Template/plugin/directory.php +++ b/app/Template/plugin/directory.php @@ -2,29 +2,54 @@

- + +

+ +

+ + +

- + +
- - - - - + + + + + + + + + - - - - - - - - - -
+ text->e($plugin['title']) ?> +
+ text->e($plugin['author']) ?> + + text->e($plugin['version']) ?> + + + + + url->link(t('Install'), 'PluginController', 'install', array('archive_url' => urlencode($plugin['download'])), true) ?> + + + url->link(t('Update'), 'PluginController', 'update', array('archive_url' => urlencode($plugin['download'])), true) ?> + + + + + + + + +
+
+ text->markdown($plugin['description']) ?> +
+
- text->e($plugin['title']) ?> - text->e($plugin['author']) ?>text->e($plugin['version']) ?>text->e($plugin['description']) ?> -
+ diff --git a/app/Template/plugin/remove.php b/app/Template/plugin/remove.php new file mode 100644 index 00000000..bd8f4eb8 --- /dev/null +++ b/app/Template/plugin/remove.php @@ -0,0 +1,13 @@ + + +
+

getPluginName()) ?>

+ +
+ url->link(t('Yes'), 'PluginController', 'uninstall', array('pluginId' => $plugin_id), true, 'btn btn-red') ?> + + url->link(t('cancel'), 'PluginController', 'show', array(), false, 'close-popover') ?> +
+
diff --git a/app/Template/plugin/show.php b/app/Template/plugin/show.php index 8358fb2a..9c3d6d20 100644 --- a/app/Template/plugin/show.php +++ b/app/Template/plugin/show.php @@ -5,15 +5,17 @@

- +
- - + + - + + + - + $plugin): ?> - + + + + + +
getPluginHomepage()): ?> @@ -24,7 +26,15 @@ text->e($plugin->getPluginAuthor()) ?> text->e($plugin->getPluginVersion()) ?>text->e($plugin->getPluginDescription()) ?> + + url->link(t('Uninstall'), 'PluginController', 'confirm', array('pluginId' => $pluginFolder), false, 'popover') ?> +
text->e($plugin->getPluginDescription()) ?>
-- cgit v1.2.3