From: Tom Hughes Date: Sat, 11 Jul 2015 10:40:14 +0000 (+0100) Subject: Remove donation drive banner X-Git-Tag: live~4096 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/996d5413d85e4d38d33ac3827a1fc853ba9d0149?ds=inline Remove donation drive banner Fixes #1003 --- diff --git a/app/assets/images/donate-sprite@2x.png b/app/assets/images/donate-sprite@2x.png deleted file mode 100644 index 20ef9119a..000000000 Binary files a/app/assets/images/donate-sprite@2x.png and /dev/null differ diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index d96bbad4a..085b615c7 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -165,15 +165,6 @@ $(document).ready(function () { $.cookie("_osm_location", OSM.locationCookie(map), { expires: expiry, path: "/" }); }); - if ($.cookie('_osm_donatedone2015') === 'hide') { - $('#donate').hide(); - } - - $('#donate .close').on('click', function() { - $('#donate').hide(); - $.cookie("_osm_donatedone2015", 'hide', { expires: expiry }); - }); - if ($.cookie('_osm_welcome') === 'hide') { $('.welcome').hide(); } diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 45a047611..61975d5f6 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -2674,42 +2674,6 @@ input.richtext_title[type="text"] { } } -#sidebar #donate { - background-color: rgb(89, 89, 89); - padding: 10px 5px; - min-height: 120px; - - .sprite { - background: transparent image-url('donate-sprite@2x.png') no-repeat scroll 0 0 / 120px 100px; - } - - .sprite.logo { - float: left; - background-position: 0 0; - height: 100px; - width: 100px; - } - - h2 { - margin-left: 100px; - padding: 14px 10px 6px 10px; - } - - p { - margin-left: 100px; - padding: 2px 10px 3px 10px; - } - - a { - color: $offwhite; - } - - :hover { - text-decoration: none; - color: #b7b7bf; - } -} - @import 'browse'; @media only screen and (max-width:960px) { diff --git a/app/views/layouts/map.html.erb b/app/views/layouts/map.html.erb index a51daf753..cb2fd0e07 100644 --- a/app/views/layouts/map.html.erb +++ b/app/views/layouts/map.html.erb @@ -30,20 +30,6 @@

<%= t 'layouts.osm_read_only' %>

<% end %> - -
<%= render :partial => "layouts/flash" %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index ab18c6922..ea04a2c01 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -953,9 +953,6 @@ en: text: Make a Donation learn_more: "Learn More" more: More - donate_done_header: Thank You - donate_done_line_1: We hit our fundraising target! - donate_line_3: Hardware Funding Drive 2015 license_page: foreign: title: About this translation