From b55e2776ccc72be172cdf9a6d29e35716a592708 Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Thu, 19 May 2016 07:03:42 -0400 Subject: [PATCH 1/2] Improved plugin repo management UI in admin/plugins --- view/tpl/admin_plugins.tpl | 55 ++++++++++++++++++++++++++------------ 1 file changed, 38 insertions(+), 17 deletions(-) diff --git a/view/tpl/admin_plugins.tpl b/view/tpl/admin_plugins.tpl index f21a3057e..29187e974 100755 --- a/view/tpl/admin_plugins.tpl +++ b/view/tpl/admin_plugins.tpl @@ -1,33 +1,54 @@
- +

{{$title}} - {{$page}}

-
+
+
-
-

Installed Plugin Repositories

- {{foreach $addonrepos as $repo}} - -
- {{$repo.name}} - - - -
- -
- {{/foreach}} -
{{foreach $plugins as $p}}
From d5ca889cf5d479135560b1f915fb5d3986b28c65 Mon Sep 17 00:00:00 2001 From: Andrew Manning Date: Thu, 19 May 2016 07:09:13 -0400 Subject: [PATCH 2/2] Replace text strings for translation support --- Zotlabs/Module/Admin.php | 4 +++- view/tpl/admin_plugins.tpl | 12 +++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/Zotlabs/Module/Admin.php b/Zotlabs/Module/Admin.php index cb843e212..4d052cdf8 100644 --- a/Zotlabs/Module/Admin.php +++ b/Zotlabs/Module/Admin.php @@ -1408,7 +1408,9 @@ class Admin extends \Zotlabs\Web\Controller { '$plugins' => $plugins, '$disabled' => t('Disabled - version incompatibility'), '$form_security_token' => get_form_security_token('admin_plugins'), - '$addrepo' => t('Add Plugin Repo'), + '$managerepos' => t('Manage Repos'), + '$installedtitle' => t('Installed Plugin Repositories'), + '$addnewrepotitle' => t('Install a New Plugin Repository'), '$expandform' => false, '$form' => $admin_plugins_add_repo_form, '$newRepoModal' => $newRepoModal, diff --git a/view/tpl/admin_plugins.tpl b/view/tpl/admin_plugins.tpl index 29187e974..993a4dea2 100755 --- a/view/tpl/admin_plugins.tpl +++ b/view/tpl/admin_plugins.tpl @@ -1,7 +1,7 @@
- +

{{$title}} - {{$page}}

@@ -10,7 +10,7 @@
-

Installed Plugin Repositories

+

{{$installedtitle}}

@@ -26,12 +26,6 @@ -
{{/foreach}} @@ -39,7 +33,7 @@
-

Install a New Plugin Repository

+

{{$addnewrepotitle}}

{{$form}}