From 75edd4d0293266291e809e4d1f3fdb408b7f48c9 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 19 Jul 2013 13:14:06 -0700 Subject: [PATCH] Update names, pick via random sample --- app/views/site/welcome.html.erb | 4 ++-- config/locales/en.yml | 16 ++++++++++------ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/app/views/site/welcome.html.erb b/app/views/site/welcome.html.erb index 56159e297..d3cb7392f 100644 --- a/app/views/site/welcome.html.erb +++ b/app/views/site/welcome.html.erb @@ -16,8 +16,8 @@
<%= t "layouts.project_name.title" %> - <% 1.upto(6) do |i| %> - <%= t "welcome_page.section_1.name_#{i}" %> + <% t("welcome_page.section_1.names").sample(6).each_with_index do |name, i| %> + <%= name %> <% end %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index 378b3d4b0..fcb13bde0 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1164,12 +1164,16 @@ en: will be available to all of these sites and applications. Copying the map data from place to place can take from a few minutes to a few hours, so don't worry if it isn't instant. - name_1: MapBox - name_2: Craigslist - name_3: GPS Maps - name_4: Skobbler - name_5: Stamen - name_6: MapQuest Open + names: + - Apple + - Craigslist + - Flickr + - Foursquare + - Garmin + - Le Monde + - MapQuest + - Telenav + - USA Today section_2: title: What's on the Map on_html: | -- 2.43.2