From: John Firebaugh Date: Fri, 10 May 2013 00:29:20 +0000 (-0700) Subject: Add SotM ads X-Git-Tag: live~5007 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/370f4bf562845a864e425f25bb8279afcb7016c3 Add SotM ads --- diff --git a/app/assets/images/sotm-birmingham-ad.png b/app/assets/images/sotm-birmingham-ad.png new file mode 100644 index 000000000..05bb1466b Binary files /dev/null and b/app/assets/images/sotm-birmingham-ad.png differ diff --git a/app/assets/images/sotm-us-ad.png b/app/assets/images/sotm-us-ad.png new file mode 100644 index 000000000..c1ab6f261 Binary files /dev/null and b/app/assets/images/sotm-us-ad.png differ diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 22b4a4ac0..86a3bb6e4 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -1785,3 +1785,26 @@ a.button.submit { width: 100%; height: 100%; } + +/* Rules for rotating sidebar ads */ +.ad-container { + display: block; + height: 120px; + overflow: hidden; + position: relative; + border-bottom: 1px solid #cccccc; +} + +.ads { + width: 370px; + position: absolute; + left: 0%; +} + +.ad { + float: left; + height: 100px; + padding: 10px; + border: 0px; + background: #fff; +} diff --git a/app/views/layouts/site.html.erb b/app/views/layouts/site.html.erb index 813fd50fe..be19d01cc 100644 --- a/app/views/layouts/site.html.erb +++ b/app/views/layouts/site.html.erb @@ -65,6 +65,21 @@ <%= yield :left_menu %> +
+
+ <%= ad = [{:image => 'sotm-birmingham-ad.png', + :title => 'State of the Map Birmingham', + :href =>'http://stateofthemap.org/'}, + {:image => 'sotm-us-ad.png', + :title => 'State of the Map USA', + :href =>'http://stateofthemap.us/'}].sample + + link_to ad[:href], :title => ad[:title] do + image_tag ad[:image], :class => :ad + end + %> +
+