]> git.openstreetmap.org Git - rails.git/blob - app/views/site/copyright.html.erb
Avoid using raw html in translations on the copyright page
[rails.git] / app / views / site / copyright.html.erb
1 <% content_for :heading do %>
2   <% if @locale == "en" %>
3     <!-- Maybe ease foreigners back to their native page -->
4     <% if t(".legal_babble", :locale => I18n.locale) != t(".legal_babble", :locale => :en) %>
5       <h1><%= t ".native.title" %></h1>
6       <p>
7         <%= t ".native.html",
8               :native_link => link_to(t(".native.native_link"),
9                                       :controller => "site",
10                                       :action => "copyright",
11                                       :copyright_locale => nil),
12               :mapping_link => link_to(t(".native.mapping_link"),
13                                        :controller => "site",
14                                        :action => "index") %>
15       </p>
16       <hr />
17     <% end %>
18   <% else %>
19     <!-- Maybe note that this page has been translated -->
20     <% if t(".legal_babble", :locale => @locale) != t(".legal_babble", :locale => :en) %>
21       <h1><%= t ".foreign.title" %></h1>
22       <p>
23         <%= t ".foreign.html",
24               :english_original_link => link_to(t(".foreign.english_link"),
25                                                 :controller => "site",
26                                                 :action => "copyright",
27                                                 :copyright_locale => "en") %>
28       </p>
29       <hr />
30     <% end %>
31   <% end %>
32
33   <% I18n.with_locale @locale do %>
34     <%= tag.h1 :lang => @locale, :dir => t("html.dir") do %>
35       <%= t ".legal_babble.title_html" %>
36     <% end %>
37   <% end %>
38 <% end %>
39
40 <% I18n.with_locale @locale do %>
41   <%= tag.div :lang => @locale, :dir => t("html.dir") do %>
42     <p>
43       <%= t ".legal_babble.introduction_1_html",
44             :registered_trademark_link => tag.sup(link_to(t(".legal_babble.introduction_1_registered_trademark_html"),
45                                                           :anchor => "trademarks")),
46             :open_data => tag.i(t(".legal_babble.introduction_1_open_data")),
47             :odc_odbl_link => link_to(t(".legal_babble.introduction_1_odc_odbl"),
48                                       t(".legal_babble.introduction_1_odc_odbl_url")),
49             :osm_foundation_link => link_to(t(".legal_babble.introduction_1_osm_foundation"),
50                                             t(".legal_babble.introduction_1_osm_foundation_url")) %>
51     </p>
52     <p>
53       <%= t ".legal_babble.introduction_2_html",
54             :legal_code_link => link_to(t(".legal_babble.introduction_2_legal_code"),
55                                         t(".legal_babble.introduction_2_legal_code_url")) %>
56     </p>
57     <p>
58       <%= t ".legal_babble.introduction_3_html",
59             :creative_commons_link => link_to(t(".legal_babble.introduction_3_creative_commons"),
60                                               t(".legal_babble.introduction_3_creative_commons_url")) %>
61     </p>
62
63     <h3><%= t ".legal_babble.credit_title_html" %></h3>
64     <p><%= t ".legal_babble.credit_1_html" %></p>
65     <ul>
66       <li><%= t ".legal_babble.credit_2_1" %></li>
67       <li><%= t ".legal_babble.credit_2_2" %></li>
68     </ul>
69     <p>
70       <%= t ".legal_babble.credit_3_html",
71             :attribution_guidelines_link => link_to(t(".legal_babble.credit_3_attribution_guidelines"),
72                                                     t(".legal_babble.credit_3_attribution_guidelines_url")) %>
73     </p>
74     <p>
75       <%= t ".legal_babble.credit_4_1_html",
76             :this_copyright_page_link => link_to(t(".legal_babble.credit_4_1_this_copyright_page"),
77                                                  copyright_path) %>
78     </p>
79     <p><%= image_tag("attribution_example.png",
80                      :alt => t(".legal_babble.attribution_example.alt"),
81                      :border => 0,
82                      :title => t(".legal_babble.attribution_example.title")) %></p>
83
84     <h3><%= t ".legal_babble.more_title_html" %></h3>
85     <p>
86       <%= t ".legal_babble.more_1_1_html",
87             :osmf_licence_page_link => link_to(t(".legal_babble.more_1_1_osmf_licence_page"),
88                                                t(".legal_babble.more_1_1_osmf_licence_page_url")) %>
89     </p>
90     <p>
91       <%= t ".legal_babble.more_2_1_html",
92             :api_usage_policy_link => link_to(t(".legal_babble.more_2_1_api_usage_policy"),
93                                               t(".legal_babble.more_2_1_api_usage_policy_url")),
94             :tile_usage_policy_link => link_to(t(".legal_babble.more_2_1_tile_usage_policy"),
95                                                t(".legal_babble.more_2_1_tile_usage_policy_url")),
96             :nominatim_usage_policy_link => link_to(t(".legal_babble.more_2_1_nominatim_usage_policy"),
97                                                     t(".legal_babble.more_2_1_nominatim_usage_policy_url")) %>
98     </p>
99
100     <h3><%= t ".legal_babble.contributors_title_html" %></h3>
101     <p><%= t ".legal_babble.contributors_intro_html" %></p>
102     <ul id="contributors">
103       <li><%= t ".legal_babble.contributors_at_html" %></li>
104       <li><%= t ".legal_babble.contributors_au_html" %></li>
105       <li><%= t ".legal_babble.contributors_ca_html" %></li>
106       <li><%= t ".legal_babble.contributors_fi_html" %></li>
107       <li><%= t ".legal_babble.contributors_fr_html" %></li>
108       <li><%= t ".legal_babble.contributors_nl_html" %></li>
109       <li><%= t ".legal_babble.contributors_nz_html" %></li>
110       <li><%= t ".legal_babble.contributors_si_html" %></li>
111       <li><%= t ".legal_babble.contributors_es_html" %></li>
112       <li><%= t ".legal_babble.contributors_za_html" %></li>
113       <li><%= t ".legal_babble.contributors_gb_html" %></li>
114     </ul>
115     <p>
116       <%= t ".legal_babble.contributors_2_html",
117             :contributors_page_link => link_to(t(".legal_babble.contributors_2_contributors_page"),
118                                                t(".legal_babble.contributors_2_contributors_page_url")) %>
119     </p>
120     <p><%= t ".legal_babble.contributors_footer_2_html" %></p>
121
122     <h3><%= t ".legal_babble.infringement_title_html" %></h3>
123     <p><%= t ".legal_babble.infringement_1_html" %></p>
124     <p>
125       <%= t ".legal_babble.infringement_2_1_html",
126             :takedown_procedure_link => link_to(t(".legal_babble.infringement_2_1_takedown_procedure"),
127                                                 t(".legal_babble.infringement_2_1_takedown_procedure_url")),
128             :online_filing_page_link => link_to(t(".legal_babble.infringement_2_1_online_filing_page"),
129                                                 t(".legal_babble.infringement_2_1_online_filing_page_url")) %>
130     </p>
131
132     <h3 id="trademarks">
133       <%= t ".legal_babble.trademarks_title" %>
134     </h3>
135     <p>
136       <%= t ".legal_babble.trademarks_1_1_html",
137             :trademark_policy_link => link_to(t(".legal_babble.trademarks_1_1_trademark_policy"),
138                                               t(".legal_babble.trademarks_1_1_trademark_policy_url")) %>
139     </p>
140   <% end %>
141 <% end %>