From 764a9be90ae48403a894b4d436af647bae20f33c Mon Sep 17 00:00:00 2001 From: rabuzarus Date: Wed, 7 Feb 2018 16:14:12 +0100 Subject: [PATCH] Frio: add admin summary template --- view/theme/frio/css/style.css | 5 +- view/theme/frio/templates/admin/summary.tpl | 64 +++++++++++++++++++++ 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 view/theme/frio/templates/admin/summary.tpl diff --git a/view/theme/frio/css/style.css b/view/theme/frio/css/style.css index dbea11b83..2f5cc2f0a 100644 --- a/view/theme/frio/css/style.css +++ b/view/theme/frio/css/style.css @@ -2112,7 +2112,7 @@ ul.dropdown-menu li:hover { .allfriends-content-wrapper, .match-content-wrapper, .dirfind-content-wrapper, .directory-content-wrapper, .manage-content-wrapper, .notes-content-wrapper, .message-content-wrapper, .apps-content-wrapper, .photos-content-wrapper, -.admin-content-wrapper, .viewcontacts-content-wrapper, .dfrn_request-content-wrapper, +#adminpage, .viewcontacts-content-wrapper, .dfrn_request-content-wrapper, .friendica-content-wrapper, .credits-content-wrapper, .nogroup-content-wrapper, .profperm-content-wrapper { min-height: calc(100vh - 150px); @@ -2829,6 +2829,9 @@ section.help-content-wrapper li { #adminpage #frio_background_image.input-group { display: block; } +#admin-summary-wrapper { + padding-top: 10px; +} #adminpage ul#pluginslist, li.plugin { padding-top: 10px; } diff --git a/view/theme/frio/templates/admin/summary.tpl b/view/theme/frio/templates/admin/summary.tpl new file mode 100644 index 000000000..26c999175 --- /dev/null +++ b/view/theme/frio/templates/admin/summary.tpl @@ -0,0 +1,64 @@ + +
+

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

+ + {{if $showwarning}} +
+ {{foreach $warningtext as $wt}} +

{{$wt}}

+ {{/foreach}} +
+ {{/if}} + +
+ {{* The work queues short statistic. *}} +
+
{{$queues.label}}
+
{{$queues.queue}} - {{$queues.workerq}}
+
+ + {{* Number of pending registrations. *}} +
+
+
{{$pending.0}}
+
{{$pending.1}}
+
+ + {{* Number of registered users *}} +
+
+
{{$users.0}}
+
{{$users.1}}
+
+ + {{* Account types of registered users. *}} + {{foreach $accounts as $p}} +
+
+
{{$p.0}}
+
{{if $p.1}}{{$p.1}}{{else}}0{{/if}}
+
+ {{/foreach}} + + {{* List enabled addons. *}} +
+
+
{{$addons.0}}
+
+ {{foreach $addons.1 as $p}} + {{$p}}
+ {{/foreach}} +
+
+ + {{* The Friendica version. *}} +
+
+
{{$version.0}}
+
{{$platform}} '{{$codename}}' {{$version.1}} - {{$build}}
+
+
+ +
+ +