blob: 486e4c8528938e59342bc79c3b991e93f52c9642 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
{% extends 'admin.twig' %}
{% set title %}{{ 'DBStats_DatabaseUsage'|translate }}{% endset %}
{% block content %}
<div piwik-content-intro>
<h2 piwik-enriched-headline>
{{ title }}
</h2>
<p>
{{ 'DBStats_MainDescription'|translate(totalSpaceUsed) }}<br/>
{{ 'DBStats_LearnMore'|translate("<a href='?module=Proxy&action=redirect&url=http://piwik.org/docs/setup-auto-archiving/' target='_blank'>Piwik Auto Archiving</a>")|raw }}
</p>
</div>
<div class="row">
<div class="col s12 m6">
{{ databaseUsageSummary|raw }}
{{ trackerDataSummary|raw }}
</div>
<div class="col s12 m6">
<div piwik-content-block content-title="{{ 'General_GeneralInformation'|translate|e('html_attr') }}">
<p style="font-size:1.4em;padding-left:21px;line-height:1.8em;">
<strong>{{ userCount }}</strong> {% if userCount == 1 %}{{ 'UsersManager_User'|translate }}{% else %}{{ 'UsersManager_MenuUsers'|translate }}{% endif %}
<br/>
<strong>{{ siteCount }}</strong> {% if siteCount == 1 %}{{ 'General_Website'|translate }}{% else %}{{ 'Referrers_Websites'|translate }}{% endif %}
</p>
</div>
<div piwik-content-block content-title="{{ 'PrivacyManager_DeleteDataSettings'|translate|e('html_attr') }}">
{% set clickDeleteLogSettings %}{{ 'PrivacyManager_DeleteDataSettings'|translate }}{% endset %}
<p>
{{ 'PrivacyManager_DeleteDataDescription'|translate }}
<br/>
<a href='{{ linkTo({'module':"PrivacyManager",'action':"privacySettings"}) }}#deleteLogsAnchor'>
{{ 'PrivacyManager_ClickHereSettings'|translate("'"~clickDeleteLogSettings~"'") }}
</a>
</p>
</div>
</div>
</div>
<div class="row">
<div class="col s12 m6">
{{ reportDataSummary|raw }}
</div>
<div class="col s12 m6">
<div class="ajaxLoad" action="getIndividualReportsSummary">
<span class="loadingPiwik"><img src="plugins/Morpheus/images/loading-blue.gif"/>{{ 'General_LoadingData'|translate }}</span>
</div>
</div>
</div>
<div class="row">
<div class="col s12 m6">
{{ metricDataSummary|raw }}
</div>
<div class="col s12 m6">
<div class="ajaxLoad" action="getIndividualMetricsSummary">
<span class="loadingPiwik"><img src="plugins/Morpheus/images/loading-blue.gif"/>{{ 'General_LoadingData'|translate }}</span>
</div>
</div>
</div>
<div class="row">
<div class="col s12 m6">
{{ adminDataSummary|raw }}
</div>
</div>
<script type="text/javascript">
(function ($) {
$(document).ready(function () {
$('.ajaxLoad').each(function () {
var self = this;
var action = $(this).attr('action');
// build & execute AJAX request
var ajaxRequest = new ajaxHelper();
ajaxRequest.addParams({
module: 'DBStats',
action: action,
viewDataTable: 'table',
showtitle: '1'
}, 'get');
ajaxRequest.setCallback(function (data) {
$('.loadingPiwik', self).remove();
$(self).html(data);
piwikHelper.compileAngularComponents(self);
});
ajaxRequest.setFormat('html');
ajaxRequest.send(false);
});
});
})(jQuery);
</script>
{% endblock %}
|