Updates from the past fortnight

This commit is contained in:
Godwin
2015-04-14 19:41:46 -07:00
parent 37ee6cfee7
commit 14205f4586
28 changed files with 597 additions and 154 deletions
+13 -1
View File
@@ -9,7 +9,19 @@
=_'links.footer.help_text.facebook', 'Join our facebook group' do |title|
%a{href: 'https://www.facebook.com/groups/648758205249998/', target: :_blank, title: title}
=svg_sprite 'icons', 'bb-icon-fb', 'facebook logo'
.locale
=_'links.footer.help_text.select_language', 'Select your language' do |title|
%input{type: :checkbox, id: 'select-language'}
%label.launch{title: title, for: 'select-language'}
=I18n.locale.upcase
.selector
%ul
-I18n.backend.available_locales.each do |locale|
%li
%a{href: request.original_url.gsub(/^(https?:\/\/)(..\.)?(.*)$/, '\1' + locale + '.\3')}
=_! locale.upcase
%span=I18n.t("languages.#{locale}", locale: locale, context: I18n.t("languages.#{locale}"))
.copy
=_'links.footer.help_text.contributors', 'Who contributed to building this website' do |title|
=link_to :humans_txt, {title: title} do
=_!"©#{Date.today.strftime("%Y")} Bike!Bike!"
=(_!"©#{Date.today.strftime("%Y")} Bike!Bike!").html_safe