[openstreetmap/openstreetmap-website] Prioritize next upcoming event in banner rotation (#1288)
Bryan Housel
notifications at github.com
Wed Sep 14 19:06:34 UTC 2016
(closes #1284)
This PR makes it so that if multiple banners are tied for queue position (e.g. if user is in incognito mode or just hasn't seen _any_ banners yet), we pick the banner with the soonest end date.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/1288
-- Commit Summary --
* Prioritize next upcoming event in banner rotation
-- File Changes --
M app/helpers/banner_helper.rb (8)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/1288.patch
https://github.com/openstreetmap/openstreetmap-website/pull/1288.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1288
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20160914/2cd64d0d/attachment.html>
More information about the rails-dev
mailing list