From 75181322baabc7b99ca0c919131a266d6987aa6d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 1 Dec 2017 22:33:04 -0500 Subject: [PATCH] Improve page contacblock for frio theme --- mod/admin.php | 1 + view/templates/admin/contactblock.tpl | 1 - view/theme/frio/js/mod_admin.js | 31 +++++++++++++++++++ .../frio/templates/admin/contactblock.tpl | 27 +++++++--------- 4 files changed, 44 insertions(+), 16 deletions(-) create mode 100644 view/theme/frio/js/mod_admin.js diff --git a/mod/admin.php b/mod/admin.php index 1bcbb45e7..fcd67aa9e 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -441,6 +441,7 @@ function admin_page_contactblock(App $a) '$baseurl' => System::baseUrl(true), '$contacts' => $contacts, + '$total_contacts' => tt('%s total blocked contact', '%s total blocked contacts', $total), '$paginate' => paginate($a), '$contacturl' => ['contact_url', t("Profile URL"), '', t("URL of the remote contact to block.")], )); diff --git a/view/templates/admin/contactblock.tpl b/view/templates/admin/contactblock.tpl index dcd33e879..152550f01 100644 --- a/view/templates/admin/contactblock.tpl +++ b/view/templates/admin/contactblock.tpl @@ -1,4 +1,3 @@ - +

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

{{$description}}

@@ -20,7 +10,7 @@ - + {{foreach $th_contacts as $th}} {{/foreach}} + + + + + +
{{$th}} @@ -39,10 +29,17 @@
+ {{$total_contacts}} +
-

{{$select_all}} | {{$select_none}}

+
{{$paginate}} -
{{else}}

{{$no_data|escape:'html'}}

{{/if}} @@ -58,6 +55,6 @@ -
+