]> git.mxchange.org Git - friendica.git/commitdiff
Frio: add admin summary template
authorrabuzarus <rabuzarus@t-online.de>
Wed, 7 Feb 2018 15:14:12 +0000 (16:14 +0100)
committerrabuzarus <rabuzarus@t-online.de>
Wed, 7 Feb 2018 15:14:12 +0000 (16:14 +0100)
view/theme/frio/css/style.css
view/theme/frio/templates/admin/summary.tpl [new file with mode: 0644]

index dbea11b83cbe122914b71e5419ad0c65eca4631a..2f5cc2f0ae7315f7f7889153bc2f5777af5d7fd8 100644 (file)
@@ -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 (file)
index 0000000..26c9991
--- /dev/null
@@ -0,0 +1,64 @@
+
+<div id='adminpage-summery' class="adminpage generic-page-wrapper">
+       <h1>{{$title}} - {{$page}}</h1>
+
+       {{if $showwarning}}
+       <div id="admin-warning-message-wrapper" class="alert alert-warning">
+               {{foreach $warningtext as $wt}}
+               <p>{{$wt}}</p>
+               {{/foreach}}
+       </div>
+       {{/if}}
+
+       <div id="admin-summary-wrapper">
+               {{* The work queues short statistic. *}}
+               <div id="admin-summary-queues" class="col-lg-12 col-md-12 col-sm-12 col-xs-12 admin-summary">
+                       <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 admin-summary-label-name text-muted">{{$queues.label}}</div>
+                       <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12 admin-summary-entry"><a href="{{$baseurl}}/admin/queue">{{$queues.queue}}</a> - {{$queues.workerq}}</div>
+               </div>
+
+               {{* Number of pending registrations. *}}
+               <div id="admin-summary-pending" class="col-lg-12 col-md-12 col-sm-12 col-xs-12 admin-summary">
+                       <hr class="admin-summary-separator">
+                       <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 admin-summary-label-name text-muted">{{$pending.0}}</div>
+                       <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12 admin-summary-entry">{{$pending.1}}</div>
+               </div>
+
+               {{* Number of registered users *}}
+               <div id="admin-summary-users" class="col-lg-12 col-md-12 col-sm-12 col-xs-12 admin-summary">
+                       <hr class="admin-summary-separator">
+                       <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 admin-summary-label-name text-muted">{{$users.0}}</div>
+                       <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12 admin-summary-entry">{{$users.1}}</div>
+               </div>
+
+               {{* Account types of registered users. *}}
+               {{foreach $accounts as $p}}
+               <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 admin-summary">
+                       <hr class="admin-summary-separator">
+                       <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 admin-summary-label-name text-muted">{{$p.0}}</div>
+                       <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12 admin-summary-entry">{{if $p.1}}{{$p.1}}{{else}}0{{/if}}</div>
+               </div>
+               {{/foreach}}
+
+               {{* List enabled addons. *}}
+               <div id="admin-summary-addons" class="col-lg-12 col-md-12 col-sm-12 col-xs-12 admin-summary">
+                       <hr class="admin-summary-separator">
+                       <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 admin-summary-label-name text-muted">{{$addons.0}}</div>
+                       <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12 admin-summary-entry">
+                               {{foreach $addons.1 as $p}}
+                               <a href="/admin/addons/{{$p}}/">{{$p}}</a><br>
+                               {{/foreach}}
+                       </div>
+               </div>
+
+               {{* The Friendica version. *}}
+               <div id="admin-summary-version" class="col-lg-12 col-md-12 col-sm-12 col-xs-12 admin-summary">
+                       <hr class="admin-summary-separator">
+                       <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 admin-summary-label-name text-muted">{{$version.0}}</div>
+                       <div class="col-lg-8 col-md-8 col-sm-8 col-xs-12 admin-summary-entry">{{$platform}} '{{$codename}}' {{$version.1}} - {{$build}}</div>
+               </div>
+       </div>
+
+       <div class="clear"></div>
+
+</div>