forked from rebillar/site-accueil-insa
57 lines
2.3 KiB
Twig
57 lines
2.3 KiB
Twig
{% 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 %}
|