blob: 729e0f112db674835aa28d450452dd7da820efb1 (
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
|
<div piwik-content-block
content-title="{% if not geoIPDatabasesInstalled %}{{ 'GeoIp2_GeoIPDatabases'|translate|e('html_attr') }}{% else %}{{ 'GeoIp2_SetupAutomaticUpdatesOfGeoIP'|translate|e('html_attr') }}{% endif %}"
id="geoip-db-mangement">
<div piwik-geoip2-updater
geoip-database-installed="{% if geoIPDatabasesInstalled %}1{% else %}0{% endif %}">
{% if showGeoIPUpdateSection %}
{% if not geoIPDatabasesInstalled %}
<div ng-show="!locationUpdater.geoipDatabaseInstalled">
<div ng-show="locationUpdater.showPiwikNotManagingInfo">
<h3>{{ 'GeoIp2_NotManagingGeoIPDBs'|translate|e('html_attr') }}</h3>
<div id="manage-geoip-dbs">
<div class="row" id="geoipdb-screen1">
<div class="geoipdb-column-1 col s6">
<p>{{ 'GeoIp2_IWantToDownloadFreeGeoIP'|translate|raw }}</p>
</div>
<div class="geoipdb-column-2 col s6">
<p>{{ 'GeoIp2_IPurchasedGeoIPDBs'|translate('<a rel="noreferrer noopener" href="http://www.maxmind.com/en/geolocation_landing?rId=piwik">','</a>','<a rel="noreferrer noopener" href="https://db-ip.com/db/?refid=mtm">','</a>')|raw }}</p>
</div>
<div class="geoipdb-column-1 col s6">
<input type="button" class="btn"
ng-click="locationUpdater.startDownloadFreeGeoIp()"
value="{{ 'General_GetStarted'|translate }}..."/>
</div>
<div class="geoipdb-column-2 col s6">
<input type="button" class="btn"
ng-click="locationUpdater.startAutomaticUpdateGeoIp()"
value="{{ 'General_GetStarted'|translate }}..." id="start-automatic-update-geoip"/>
</div>
</div>
</div>
</div>
<div id="geoipdb-screen2-download" ng-show="locationUpdater.showFreeDownload">
<div piwik-progressbar
label="{{ ('GeoIp2_DownloadingDb'|translate('<a href="'~dbipLiteUrl~'">'~dbipLiteFilename~'</a>') ~ '...')|json_encode }}"
progress="locationUpdater.progressFreeDownload">
</div>
</div>
</div>
{% endif %}
{% include "@GeoIp2/_updaterManage.twig" %}
{% else %}
<p class="form-description">{{ 'GeoIp2_CannotSetupGeoIPAutoUpdating'|translate }}</p>
{% endif %}
</div>
</div>
|