]> git.openstreetmap.org Git - rails.git/blob - app/views/site/copyright.html.erb
Merge remote-tracking branch 'upstream/pull/5357'
[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 ".title" %>
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                      :class => "img-fluid",
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>
104         <%= t ".legal_babble.contributors_at_credit_html",
105               :austria => tag.strong(t(".legal_babble.contributors_at_austria")),
106               :stadt_wien_link => link_to(t(".legal_babble.contributors_at_stadt_wien"),
107                                           t(".legal_babble.contributors_at_stadt_wien_url")),
108               :cc_by_link => link_to(t(".legal_babble.contributors_at_cc_by"),
109                                      t(".legal_babble.contributors_at_cc_by_url")),
110               :land_vorarlberg_link => link_to(t(".legal_babble.contributors_at_land_vorarlberg"),
111                                                t(".legal_babble.contributors_at_land_vorarlberg_url")),
112               :cc_by_at_with_amendments_link => link_to(t(".legal_babble.contributors_at_cc_by_at_with_amendments"),
113                                                         t(".legal_babble.contributors_at_cc_by_at_with_amendments_url")) %>
114       </li>
115       <li>
116         <%= t ".legal_babble.contributors_au_credit_html",
117               :australia => tag.strong(t(".legal_babble.contributors_au_australia")),
118               :geoscape_australia_link => link_to(t(".legal_babble.contributors_au_geoscape_australia"),
119                                                   t(".legal_babble.contributors_au_geoscape_australia_url")),
120               :cc_licence_link => link_to(t(".legal_babble.contributors_au_cc_licence"),
121                                           t(".legal_babble.contributors_au_cc_licence_url")) %>
122       </li>
123       <li>
124         <%= t ".legal_babble.contributors_ca_credit_html",
125               :canada => tag.strong(t(".legal_babble.contributors_ca_canada")) %>
126       </li>
127       <li>
128         <%= t ".legal_babble.contributors_cz_credit_html",
129               :czechia => tag.strong(t(".legal_babble.contributors_cz_czechia")),
130               :cc_licence_link => link_to(t(".legal_babble.contributors_cz_cc_licence"),
131                                           t(".legal_babble.contributors_cz_cc_licence_url")) %>
132       </li>
133       <li>
134         <%= t ".legal_babble.contributors_fi_credit_html",
135               :finland => tag.strong(t(".legal_babble.contributors_fi_finland")),
136               :nlsfi_license_link => link_to(t(".legal_babble.contributors_fi_nlsfi_license"),
137                                              t(".legal_babble.contributors_fi_nlsfi_license_url")) %>
138       </li>
139       <li>
140         <%= t ".legal_babble.contributors_fr_credit_html",
141               :france => tag.strong(t(".legal_babble.contributors_fr_france")) %>
142       </li>
143       <li>
144         <%= t ".legal_babble.contributors_hr_credit_html",
145               :croatia => tag.strong(t(".legal_babble.contributors_hr_croatia")),
146               :dgu_link => link_to(t(".legal_babble.contributors_hr_dgu"),
147                                    t(".legal_babble.contributors_hr_dgu_url")),
148               :open_data_portal => link_to(t(".legal_babble.contributors_hr_open_data_portal"),
149                                            t(".legal_babble.contributors_hr_open_data_portal_url")) %>
150       </li>
151       <li>
152         <%= t ".legal_babble.contributors_nl_credit_html",
153               :netherlands => tag.strong(t(".legal_babble.contributors_nl_netherlands")),
154               :and_link => link_to(t(".legal_babble.contributors_nl_and"),
155                                    t(".legal_babble.contributors_nl_and_url")) %>
156       </li>
157       <li>
158         <%= t ".legal_babble.contributors_nz_credit_html",
159               :new_zealand => tag.strong(t(".legal_babble.contributors_nz_new_zealand")),
160               :linz_data_service_link => link_to(t(".legal_babble.contributors_nz_linz_data_service"),
161                                                  t(".legal_babble.contributors_nz_linz_data_service_url")),
162               :cc_by_link => link_to(t(".legal_babble.contributors_nz_cc_by"),
163                                      t(".legal_babble.contributors_nz_cc_by_url")) %>
164       </li>
165       <li>
166         <%= t ".legal_babble.contributors_rs_credit_html",
167               :serbia => tag.strong(t(".legal_babble.contributors_rs_serbia")),
168               :rgz_link => link_to(t(".legal_babble.contributors_rs_rgz"),
169                                    t(".legal_babble.contributors_rs_rgz_url")),
170               :open_data_portal => link_to(t(".legal_babble.contributors_rs_open_data_portal"),
171                                            t(".legal_babble.contributors_rs_open_data_portal_url")) %>
172       </li>
173       <li>
174         <%= t ".legal_babble.contributors_si_credit_html",
175               :slovenia => tag.strong(t(".legal_babble.contributors_si_slovenia")),
176               :gu_link => link_to(t(".legal_babble.contributors_si_gu"),
177                                   t(".legal_babble.contributors_si_gu_url")),
178               :mkgp_link => link_to(t(".legal_babble.contributors_si_mkgp"),
179                                     t(".legal_babble.contributors_si_mkgp_url")) %>
180       </li>
181       <li>
182         <%= t ".legal_babble.contributors_es_credit_html",
183               :spain => tag.strong(t(".legal_babble.contributors_es_spain")),
184               :ign_link => link_to(t(".legal_babble.contributors_es_ign"),
185                                    t(".legal_babble.contributors_es_ign_url")),
186               :scne_link => link_to(t(".legal_babble.contributors_es_scne"),
187                                     t(".legal_babble.contributors_es_scne_url")),
188               :cc_by_link => link_to(t(".legal_babble.contributors_es_cc_by"),
189                                      t(".legal_babble.contributors_es_cc_by_url")) %>
190       </li>
191       <li>
192         <%= t ".legal_babble.contributors_za_credit_html",
193               :south_africa => tag.strong(t(".legal_babble.contributors_za_south_africa")),
194               :ngi_link => link_to(t(".legal_babble.contributors_za_ngi"),
195                                    t(".legal_babble.contributors_za_ngi_url")) %>
196       </li>
197       <li>
198         <%= t ".legal_babble.contributors_gb_credit_html",
199               :united_kingdom => tag.strong(t(".legal_babble.contributors_gb_united_kingdom")) %>
200       </li>
201     </ul>
202     <p>
203       <%= t ".legal_babble.contributors_2_html",
204             :contributors_page_link => link_to(t(".legal_babble.contributors_2_contributors_page"),
205                                                t(".legal_babble.contributors_2_contributors_page_url")) %>
206     </p>
207     <p><%= t ".legal_babble.contributors_footer_2_html" %></p>
208
209     <h3><%= t ".legal_babble.infringement_title_html" %></h3>
210     <p><%= t ".legal_babble.infringement_1_html" %></p>
211     <p>
212       <%= t ".legal_babble.infringement_2_1_html",
213             :takedown_procedure_link => link_to(t(".legal_babble.infringement_2_1_takedown_procedure"),
214                                                 t(".legal_babble.infringement_2_1_takedown_procedure_url")),
215             :online_filing_page_link => link_to(t(".legal_babble.infringement_2_1_online_filing_page"),
216                                                 t(".legal_babble.infringement_2_1_online_filing_page_url")) %>
217     </p>
218
219     <h3 id="trademarks">
220       <%= t ".legal_babble.trademarks_title" %>
221     </h3>
222     <p>
223       <%= t ".legal_babble.trademarks_1_1_html",
224             :trademark_policy_link => link_to(t(".legal_babble.trademarks_1_1_trademark_policy"),
225                                               t(".legal_babble.trademarks_1_1_trademark_policy_url")) %>
226     </p>
227   <% end %>
228 <% end %>