]> git.openstreetmap.org Git - rails.git/blob - app/views/site/about.html.erb
Use .with_locale for about page
[rails.git] / app / views / site / about.html.erb
1 <% I18n.with_locale @locale do %>
2   <%= tag.div :lang => @locale, :dir => t("html.dir") do %>
3     <div class="container-lg attr">
4       <div class='row'>
5         <div class='col-sm-7 user-image'></div>
6         <div class='col-sm-5 px-5 py-3 byosm'>
7           <p class='h5 text-white text-nowrap'><%= t ".copyright_html" %></p>
8         </div>
9       </div>
10       <div class='row'>
11         <div class="w-100 px-5 py-4 bg-dark">
12           <h1 class="text-white fw-light"><%= t ".used_by_html", :name => tag.span("OpenStreetMap", :class => "user-name") %></h1>
13         </div>
14       </div>
15     </div>
16
17     <div class='bg-white px-5 py-4'>
18       <p class="lead"><%= t ".lede_text" %></p>
19
20       <%= render :layout => "about_section", :locals => { :icon => "local", :title => "local_knowledge" } do %>
21         <p><%= t "site.about.local_knowledge_html" %></p>
22       <% end %>
23
24       <%= render :layout => "about_section", :locals => { :icon => "community", :title => "community_driven" } do %>
25         <p><%= t "site.about.community_driven_html", :diary_path => diary_entries_path %></p>
26       <% end %>
27
28       <%= render :layout => "about_section", :locals => { :id => "open-data", :icon => "open", :title => "open_data" } do %>
29         <p><%= t "site.about.open_data_html", :copyright_path => copyright_path %></p>
30       <% end %>
31
32       <%= render :layout => "about_section", :locals => { :id => "legal", :icon => "legal", :title => "legal" } do %>
33         <p><%= t "site.about.legal_1_html" %></p>
34         <p><%= t "site.about.legal_2_html" %></p>
35       <% end %>
36
37       <%= render :layout => "about_section", :locals => { :id => "partners", :icon => "partners", :title => "partners" } do %>
38         <p><%= t "layouts.hosting_partners_html", :ucl => link_to(t("layouts.partners_ucl"), "https://www.ucl.ac.uk"),
39                                                   :fastly => link_to(t("layouts.partners_fastly"), "https://www.fastly.com/"),
40                                                   :bytemark => link_to(t("layouts.partners_bytemark"), "https://www.bytemark.co.uk"),
41                                                   :partners => link_to(t("layouts.partners_partners"), "https://hardware.openstreetmap.org/thanks/") %>
42         </p>
43       <% end %>
44     </div>
45   <% end %>
46 <% end %>