[openstreetmap/openstreetmap-website] Add support for rotating banners, add banners for SOTM, SOTMUS (#1240)
Bryan Housel
notifications at github.com
Tue Jun 21 19:14:24 UTC 2016
> + end
> +
> + if val.to_i <= queuePos
> + bannerSym = k
> + cookieStr = c
> + queuePos = val.to_i
> + end
> +end
> +
> +unless bannerSym.nil?
> + banner = active_banners[bannerSym]
> + cookies[cookieStr.to_sym] = active_banners.length # bump to end of queue
> +%>
> +<%= link_to (image_tag banner[:img], :alt => banner[:alt], :title => banner[:alt]), banner[:link] %>
> +<div class="close-wrap" id="<%= cookieStr %>"><span class="icon close"></span></div>
> +<% end %>
Yeah, I don't know if the alt text needs localization, I kind of think that's unnecessary. I guess my question was more like "would we ever want to do something (like localization) with the banner data, or can we really just pull it from a yaml config file"
---
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/1240/files/933335a0ea28f274bc7301c18611bcd90709fd99#r67933421
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20160621/8256695d/attachment.html>
More information about the rails-dev
mailing list