aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/history.tpl
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2013-05-16 20:46:21 +0000
committerrvelices <rv-github@modusoptimus.com>2013-05-16 20:46:21 +0000
commit923ee0d25379d6556dc9b48f3df6762eee92516f (patch)
tree153110b9046ae0cf8abaa14271f650f185334799 /admin/themes/default/template/history.tpl
parent090b2e46a3ff3fc656d27b0580244f99c12f7e3c (diff)
feature 2885: Add geoip info in the stats / history page - fixes and add a location map image
git-svn-id: http://piwigo.org/svn/trunk@22703 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/themes/default/template/history.tpl')
-rw-r--r--admin/themes/default/template/history.tpl11
1 files changed, 10 insertions, 1 deletions
diff --git a/admin/themes/default/template/history.tpl b/admin/themes/default/template/history.tpl
index 5c4d1a1a7..cd2b786eb 100644
--- a/admin/themes/default/template/history.tpl
+++ b/admin/themes/default/template/history.tpl
@@ -138,6 +138,7 @@
{combine_script id='jquery.geoip' load='async' path='admin/themes/default/js/jquery.geoip.js'}
{footer_script}{literal}
+jQuery(document).ready( function(){
jQuery(".IP").one( "mouseenter", function(){
var that = $(this);
that
@@ -147,11 +148,19 @@ jQuery(".IP").one( "mouseenter", function(){
});
GeoIp.get( that.text(), function(data) {
if (!data.fullName) return;
+ var content = data.fullName;
+ if (data.latitude && data.region_name) {
+ content += "<br><img width=300 height=220 src=\"http://maps.googleapis.com/maps/api/staticmap?sensor=false&size=300x220&zoom=6"
+ + "&markers=size:tiny%7C" + data.latitude + "," + data.longitude
+ + "\">";
+ }
that.tipTip( {
- content: data.fullName
+ content: content,
+ maxWidth: 320
} );
if (that.data("isOver"))
that.trigger("mouseenter");
});
} );
+});
{/literal}{/footer_script} \ No newline at end of file