From: Grant Slater Date: Mon, 30 May 2016 23:14:08 +0000 (+0100) Subject: imagery: add html titles X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/911c341fc1a9c341fe1aadfcdf6ce32864180ae7?ds=sidebyside imagery: add html titles --- diff --git a/cookbooks/imagery/recipes/au_agri.rb b/cookbooks/imagery/recipes/au_agri.rb index 99dcb972a..921cbe2d2 100644 --- a/cookbooks/imagery/recipes/au_agri.rb +++ b/cookbooks/imagery/recipes/au_agri.rb @@ -20,6 +20,7 @@ include_recipe "imagery" imagery_site "agri.openstreetmap.org" do + title "OpenStreetMap - The Australian Geographic Reference Image" # aliases [ "agri.openstreetmap.org.au" ] bbox [[-44.74673, 111.5332], [-9.75237, 154.6875]] end diff --git a/cookbooks/imagery/recipes/gb_hampshire_aerial.rb b/cookbooks/imagery/recipes/gb_hampshire_aerial.rb index 28dd8e94a..ff6ef74ee 100644 --- a/cookbooks/imagery/recipes/gb_hampshire_aerial.rb +++ b/cookbooks/imagery/recipes/gb_hampshire_aerial.rb @@ -20,6 +20,7 @@ include_recipe "imagery" imagery_site "hampshire.aerial.openstreetmap.org.uk" do + title "OpenStreetMap - Hampshire Hub Aerial" # aliases bbox [[50.564, -1.9899], [51.3606, -0.712738]] end diff --git a/cookbooks/imagery/recipes/gb_os_sv.rb b/cookbooks/imagery/recipes/gb_os_sv.rb index 16ca43184..439231cbe 100644 --- a/cookbooks/imagery/recipes/gb_os_sv.rb +++ b/cookbooks/imagery/recipes/gb_os_sv.rb @@ -42,6 +42,7 @@ cookbook_file "/srv/imagery/common/osstvw_make_diffs" do end imagery_site "os.openstreetmap.org" do + title "OpenStreetMap - Ordnance Survey OpenData - Street View" aliases ["os.openstreetmap.org.uk"] bbox [[49.85, -10.5], [58.75, 1.9]] end diff --git a/cookbooks/imagery/recipes/gb_surrey_aerial.rb b/cookbooks/imagery/recipes/gb_surrey_aerial.rb index 1495c2060..d2e286d6b 100644 --- a/cookbooks/imagery/recipes/gb_surrey_aerial.rb +++ b/cookbooks/imagery/recipes/gb_surrey_aerial.rb @@ -20,6 +20,7 @@ include_recipe "imagery" imagery_site "surrey.aerial.openstreetmap.org.uk" do + title "OpenStreetMap - Surrey Air Survey - 2009" # aliases bbox [[51.0595, -0.873413], [51.466, 0.0617981]] end @@ -29,5 +30,7 @@ imagery_layer "gb_surrey_aerial" do root_layer true projection "EPSG:27700" source "/data/imagery/gb/surrey-aerial/SurreyMosaicECW.tif" + text "Surrey Air Survey - 2008/2009" + copyright "ODC Open Database License (ODbL) - Surrey Heath Borough Council" url_aliases ["/sas"] end diff --git a/cookbooks/imagery/resources/site.rb b/cookbooks/imagery/resources/site.rb index 6478faa52..a2c94b953 100644 --- a/cookbooks/imagery/resources/site.rb +++ b/cookbooks/imagery/resources/site.rb @@ -22,6 +22,7 @@ require "yaml" default_action :create property :name, String +property :title, String, :required => true property :aliases, [String, Array], :default => [] property :bbox, Array, :required => true @@ -51,7 +52,7 @@ action :create do user "root" group "root" mode 0644 - variables :title => name + variables :title => title end cookbook_file "/srv/#{name}/imagery.css" do