blob: 8193fac0ce03fc94bd50e789e4c3b2e5ac43abab (
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
|
{% extends "dashboard.twig" %}
{% block notification %}{% endblock %}
{% block topcontrols %}
{% include "@CoreHome/_siteSelectHeader.twig" %}
{% endblock %}
{% block content %}
<script type="text/javascript" charset="utf-8">
$(document).ready(function () {
$('<div />').insertAfter('.site-without-data').liveWidget({
interval: 1000,
onUpdate: function () {
// reload page as soon as a visit was detected
broadcast.propagateNewPage('date=today');
},
dataUrlParams: {
module: 'Live',
action: 'getLastVisitsStart'
}
});
});
</script>
<div class="site-without-data">
<div piwik-content-block content-title="{{ 'SitesManager_SiteWithoutDataTitle'|translate|e('html_attr') }} 🚀">
<p> </p>
<p>{{ 'SitesManager_SiteWithoutDataDescription'|translate('<a href="mailto:?subject=' ~ 'SitesManager_EmailInstructionsSubject'|translate|url_encode|e('html_attr') ~ '&body=' ~ emailBody|url_encode|e('html_attr') ~ '">', '</a>')|raw }}</p>
<p>{{ 'SitesManager_SiteWithoutDataMessageDisappears'|translate }}</p>
<h3>{{ 'SitesManager_SiteWithoutDataChoosePreferredWay'|translate }}</h3>
<div piwik-widget-loader='{"module":"SitesManager","action":"siteWithoutDataTabs"}' loading-message="{{ 'SitesManager_DetectingYourSite'|translate|e('html_attr') }}..."></div>
<hr>
<a class="btn" id="emailTrackingCodeBtn"
href="mailto:?subject={{ 'SitesManager_EmailInstructionsSubject'|translate|url_encode|e('html_attr') }}&body={{ emailBody|url_encode|e('html_attr') }}"
>{{ 'SitesManager_EmailInstructionsButton'|translate }}</a>
{{ postEvent('Template.siteWithoutData.afterIntro') }}
<br />
<br />
<a href="{{ linkTo({module: 'SitesManager', action: 'ignoreNoDataMessage'}) }}"
class="btn ignoreSitesWithoutData"
>
{{ 'SitesManager_SiteWithoutDataIgnoreMessage'|translate }}
</a>
</div>
{{ postEvent('Template.siteWithoutData.afterTrackingHelp') }}
</div>
{% endblock %}
|