aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/history.tpl
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2013-05-14 19:30:26 +0000
committerrvelices <rv-github@modusoptimus.com>2013-05-14 19:30:26 +0000
commitd2c695ee899446f179878e746d5b65d03cb5816e (patch)
tree05d5da08cb4acde0ae24c10167ece3b67f628f7e /admin/themes/default/template/history.tpl
parente97963464beeaa0c1447fdd23091473781a2a46c (diff)
feature 2885: Add geoip info in the stats / history page
git-svn-id: http://piwigo.org/svn/trunk@22664 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/themes/default/template/history.tpl25
1 files changed, 20 insertions, 5 deletions
diff --git a/admin/themes/default/template/history.tpl b/admin/themes/default/template/history.tpl
index 4cc5e93c6..fa0f49e1d 100644
--- a/admin/themes/default/template/history.tpl
+++ b/admin/themes/default/template/history.tpl
@@ -6,9 +6,7 @@
pwg_initialization_datepicker("#end_day", "#end_month", "#end_year", "#end_linked_date", null, "#start_linked_date", null);
{/literal}{/footer_script}
-<div class="titrePage">
- <h2>{'History'|@translate} {$TABSHEET_TITLE}</h2>
-</div>
+<h2>{'History'|@translate} {$TABSHEET_TITLE}</h2>
<form class="filter" method="post" name="filter" action="{$F_ACTION}">
<fieldset>
@@ -83,7 +81,7 @@
</select>
</label>
- <input class="submit" type="submit" name="submit" value="{'Submit'|@translate}">
+ <input type="submit" name="submit" value="{'Submit'|@translate}">
</fieldset>
</form>
@@ -124,7 +122,7 @@
<td class="hour">{$detail.DATE}</td>
<td class="hour">{$detail.TIME}</td>
<td>{$detail.USER}</td>
- <td>{$detail.IP}</td>
+ <td class="IP">{$detail.IP}</td>
<td>{$detail.IMAGE}</td>
<td>{$detail.TYPE}</td>
<td>{$detail.SECTION}</td>
@@ -136,3 +134,20 @@
</table>
{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
+
+{combine_script id='jquery.geoip' load='async' path='admin/themes/default/js/jquery.geoip.js'}
+{combine_script id='jquery.ui.tooltip' load='footer'}
+
+{footer_script}{literal}
+jQuery(".IP").tooltip( {
+ items: "*",
+ /*show: {delay:0, effect:"show"},
+ hide: {delay:50, effect:"hide"},*/
+ content: function(response) {
+ var that = $(this);
+ GeoIp.get( that.text(), function(data) {
+ response( data.fullName );
+ });
+ }
+});
+{/literal}{/footer_script} \ No newline at end of file