Updating branch refs/heads/master to 6da865cfff5d976368e9811dd25f5afab10e450d (commit) from 091acfa8ebe042399c5fc7046c22fe8b6ccdaf5a (commit)
commit 6da865cfff5d976368e9811dd25f5afab10e450d Author: Nick Schermer <n...@xfce.org> Date: Wed Jul 18 11:16:16 2012 +0200 Remove geolocation code. fancyindex/main.rb | 6 ------ fancyindex/views/geolocation.haml | 19 ------------------- 2 files changed, 0 insertions(+), 25 deletions(-) diff --git a/fancyindex/main.rb b/fancyindex/main.rb index 47535eb..f619621 100644 --- a/fancyindex/main.rb +++ b/fancyindex/main.rb @@ -8,12 +8,6 @@ module Fancyindex class Application < Sinatra::Base include Fancyindex::Models - # used in the xfce weather plugin - get '/geolocation' do - content_type 'application/xml', :charset => 'utf-8' - haml :geolocation, :layout => false - end - get '/howtomirror' do @title = "How to become a mirror for Xfce" @minute = rand(59) diff --git a/fancyindex/views/geolocation.haml b/fancyindex/views/geolocation.haml deleted file mode 100644 index f35de29..0000000 --- a/fancyindex/views/geolocation.haml +++ /dev/null @@ -1,19 +0,0 @@ -%Response - - if ENV['GEOIP_ADDR'] - %Ip #{ENV['GEOIP_ADDR']} - - if ENV['GEOIP_COUNTRY_CODE'] - %CountryCode #{ENV['GEOIP_COUNTRY_CODE']} - - if ENV['GEOIP_COUNTRY_NAME'] - %CountryName #{ENV['GEOIP_COUNTRY_NAME']} - - if ENV['GEOIP_REGION'] - %RegionCode #{ENV['GEOIP_REGION']} - - if ENV['GEOIP_REGION_NAME'] - %RegionName #{ENV['GEOIP_REGION_NAME']} - - if ENV['GEOIP_AREA_CODE'] - %RegionName #{ENV['GEOIP_AREA_CODE']} - - if ENV['GEOIP_CITY'] - %City #{ENV['GEOIP_CITY']} - - if ENV['GEOIP_LATITUDE'] - %Latitude #{ENV['GEOIP_LATITUDE']} - - if ENV['GEOIP_LONGITUDE'] - %Longitude #{ENV['GEOIP_LONGITUDE']} _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits