From: Tom Hughes Date: Wed, 8 Aug 2012 20:37:29 +0000 (+0100) Subject: Add a SOTM advert to the sidebar X-Git-Tag: live~5434 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/3445f447cd24dee77b341b8a97196024e3ee8ec0?hp=f436a5cd2ba7f1e86c73fab06eae2e8da188f79f;ds=sidebyside Add a SOTM advert to the sidebar --- diff --git a/app/assets/images/sotm.png b/app/assets/images/sotm.png index 8c11ebed4..ae0c7c48a 100644 Binary files a/app/assets/images/sotm.png and b/app/assets/images/sotm.png differ diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 17f512e98..078674a11 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -179,14 +179,17 @@ h2 { /* Rules for SOTM advert */ #sotm { - width: 180px; - min-width: 180px; - margin: 5px; + width: 165px; + margin: 10px; padding: 0px; border: 0px; background: #fff; } +#sotm img { + width: 165px; +} + /* * Rules for "optional boxes" which appear in the left sidebar on * certain pages. Current users are the seach box on the main page diff --git a/app/views/layouts/site.html.erb b/app/views/layouts/site.html.erb index 1984f686c..0bff66656 100644 --- a/app/views/layouts/site.html.erb +++ b/app/views/layouts/site.html.erb @@ -126,6 +126,10 @@ +
+ <%= link_to image_tag("sotm.png", :alt => t('layouts.sotm2012'), :title => t('layouts.sotm2012'), :border => "0"), "http://stateofthemap.org/register-now/" %> +
+ diff --git a/config/locales/en.yml b/config/locales/en.yml index a48093cf8..d01482045 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1003,7 +1003,7 @@ en: community_blogs_title: "Blogs from members of the OpenStreetMap community" foundation: Foundation foundation_title: The OpenStreetMap Foundation - sotm2011: 'Come to the 2011 OpenStreetMap Conference, The State of the Map, September 9-11th in Denver!' + sotm2012: 'Come to the 2012 OpenStreetMap Conference, The State of the Map, September 6-8th in Tokyo!' license: alt: CC BY-SA 2.0 title: OpenStreetMap data is licensed under the Creative Commons Attribution-Share Alike 2.0 Generic License