From: Tom Hughes Date: Tue, 30 Jun 2015 20:59:14 +0000 (+0100) Subject: Change donation drive panel to a thank you X-Git-Tag: live~4674 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/9e2db4513e7ebd93bf47898774348957192e11b4 Change donation drive panel to a thank you Closes #1001 --- diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index 5e437c6ec..d96bbad4a 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -165,13 +165,13 @@ $(document).ready(function () { $.cookie("_osm_location", OSM.locationCookie(map), { expires: expiry, path: "/" }); }); - if ($.cookie('_osm_donate2015') === 'hide') { + if ($.cookie('_osm_donatedone2015') === 'hide') { $('#donate').hide(); } $('#donate .close').on('click', function() { $('#donate').hide(); - $.cookie("_osm_donate2015", 'hide', { expires: expiry }); + $.cookie("_osm_donatedone2015", 'hide', { expires: expiry }); }); if ($.cookie('_osm_welcome') === 'hide') { diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index 21cecaf4a..45a047611 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -2692,7 +2692,7 @@ input.richtext_title[type="text"] { h2 { margin-left: 100px; - padding: 7px 10px 6px 10px; + padding: 14px 10px 6px 10px; } p { diff --git a/app/views/layouts/map.html.erb b/app/views/layouts/map.html.erb index 6ae087b06..a51daf753 100644 --- a/app/views/layouts/map.html.erb +++ b/app/views/layouts/map.html.erb @@ -34,12 +34,10 @@

- <%= t 'layouts.donate_header' %> + <%= t 'layouts.donate_done_header' %>

- <%= t 'layouts.donate_line_1' %> -
- <%= t 'layouts.donate_line_2' %> + <%= t 'layouts.donate_done_line_1' %>

<%= t 'layouts.donate_line_3' %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 5b439fdae..daab37f43 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -953,9 +953,8 @@ en: text: Make a Donation learn_more: "Learn More" more: More - donate_header: Support OpenStreetMap - donate_line_1: Bigger Servers for a - donate_line_2: Growing OpenStreetMap + donate_done_header: Thank You + donate_done_line_1: We hit our fundraising target! donate_line_3: Hardware Funding Drive 2015 license_page: foreign: