Update names, pick via random sample
[rails.git] / app / views / site / welcome.html.erb
index 56159e29733bc2ac780d248cd9f6fc126a338da2..d3cb7392f1868af9f3ed0a614afe928b7644e5ff 100644 (file)
@@ -16,8 +16,8 @@
   <div class='center one-map'>
     <div class='sprite large one-map'>
       <span class='one-map-name one-map-project-name'><%= t "layouts.project_name.title" %></span>
-      <% 1.upto(6) do |i| %>
-        <span class='one-map-name one-map-name-<%= i %>'><%= t "welcome_page.section_1.name_#{i}" %></span>
+      <% t("welcome_page.section_1.names").sample(6).each_with_index do |name, i| %>
+        <span class='one-map-name one-map-name-<%= i+1 %>'><%= name %></span>
       <% end %>
     </div>
   </div>