]> git.openstreetmap.org Git - rails.git/blob - app/views/site/copyright.html.erb
Merge remote-tracking branch 'upstream/pull/6115'
[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 class="lead">
43       <%= legal_babble_paragraph "lead_1" %>
44     </p>
45     <p class="lead">
46       <%= legal_babble_paragraph "lead_2", :links => %w[learn_more_about_osm osm_blog weeklyosm osm_foundation making_donation],
47                                            :local_links => { :get_started_mapping => new_user_path,
48                                                              :osm_community => communities_path } %>
49     </p>
50     <h3><%= t ".legal_babble.licensing_title" %></h3>
51     <p>
52       <%= legal_babble_paragraph "licensing_1", :links => %w[odc_odbl osm_foundation],
53                                                 :open => tag.em(t(".legal_babble.licensing_1_open")) %>
54     </p>
55     <p>
56       <%= legal_babble_paragraph "licensing_2", :links => %w[legal_code] %>
57     </p>
58     <p>
59       <%= legal_babble_paragraph "licensing_3", :links => %w[creative_commons_license] %>
60     </p>
61     <p>
62       <%= legal_babble_paragraph "licensing_4", :links => %w[osmf_license_page] %>
63     </p>
64
65     <h3><%= t ".legal_babble.credit_title_html" %></h3>
66     <p>
67       <%= legal_babble_paragraph "credit_1" %>
68     </p>
69     <ul>
70       <li><%= t ".legal_babble.credit_2_attribution" %></li>
71       <li><%= t ".legal_babble.credit_2_license" %></li>
72     </ul>
73     <p>
74       <%= legal_babble_paragraph "credit_3_v2025", :links => %w[requirements_on_how_displayed attribution_guidelines licensing_requirements] %>
75     </p>
76     <p>
77       <%= legal_babble_paragraph "credit_4_v2025", :local_links => { :this_copyright_page => copyright_path },
78                                                    :copyright_page_url => copyright_url %>
79     </p>
80     <p>
81       <%= legal_babble_paragraph "credit_5_v2025" %>
82     </p>
83     <p><%= image_tag("attribution_example.png",
84                      :alt => t(".legal_babble.attribution_example.alt"),
85                      :class => "img-fluid",
86                      :title => t(".legal_babble.attribution_example.title")) %></p>
87
88     <h3><%= t ".legal_babble.infringement_title_html" %></h3>
89     <p>
90       <%= legal_babble_paragraph "infringement_1" %>
91     </p>
92     <p>
93       <%= legal_babble_paragraph "infringement_2_1", :links => %w[takedown_procedure online_filing_page] %>
94     </p>
95
96     <h3 id="trademarks"><%= t ".legal_babble.trademarks_title" %></h3>
97     <p>
98       <%= legal_babble_paragraph "trademarks_1_1", :links => %w[trademark_policy] %>
99     </p>
100
101     <h3><%= t ".legal_babble.services_title_html" %></h3>
102     <p>
103       <%= legal_babble_paragraph "services_1", :links => %w[api_usage_policy tile_usage_policy nominatim_usage_policy] %>
104     </p>
105
106     <h3><%= t ".legal_babble.contributors_title_html" %></h3>
107     <p><%= t ".legal_babble.contributors_intro_html" %></p>
108     <ul id="contributors">
109       <li>
110         <%= t ".legal_babble.contributors_at_credit_html",
111               :austria => tag.strong(t(".legal_babble.contributors_at_austria")),
112               :stadt_wien_link => link_to(t(".legal_babble.contributors_at_stadt_wien"),
113                                           t(".legal_babble.contributors_at_stadt_wien_url")),
114               :cc_by_link => link_to(t(".legal_babble.contributors_at_cc_by"),
115                                      t(".legal_babble.contributors_at_cc_by_url")),
116               :land_vorarlberg_link => link_to(t(".legal_babble.contributors_at_land_vorarlberg"),
117                                                t(".legal_babble.contributors_at_land_vorarlberg_url")),
118               :cc_by_at_with_amendments_link => link_to(t(".legal_babble.contributors_at_cc_by_at_with_amendments"),
119                                                         t(".legal_babble.contributors_at_cc_by_at_with_amendments_url")) %>
120       </li>
121       <li>
122         <%= t ".legal_babble.contributors_au_credit_html",
123               :australia => tag.strong(t(".legal_babble.contributors_au_australia")),
124               :geoscape_australia_link => link_to(t(".legal_babble.contributors_au_geoscape_australia"),
125                                                   t(".legal_babble.contributors_au_geoscape_australia_url")),
126               :cc_licence_link => link_to(t(".legal_babble.contributors_au_cc_licence"),
127                                           t(".legal_babble.contributors_au_cc_licence_url")) %>
128       </li>
129       <li>
130         <%= t ".legal_babble.contributors_ca_credit_html",
131               :canada => tag.strong(t(".legal_babble.contributors_ca_canada")) %>
132       </li>
133       <li>
134         <%= t ".legal_babble.contributors_cz_credit_html",
135               :czechia => tag.strong(t(".legal_babble.contributors_cz_czechia")),
136               :cc_licence_link => link_to(t(".legal_babble.contributors_cz_cc_licence"),
137                                           t(".legal_babble.contributors_cz_cc_licence_url")) %>
138       </li>
139       <li>
140         <%= t ".legal_babble.contributors_fi_credit_html",
141               :finland => tag.strong(t(".legal_babble.contributors_fi_finland")),
142               :nlsfi_license_link => link_to(t(".legal_babble.contributors_fi_nlsfi_license"),
143                                              t(".legal_babble.contributors_fi_nlsfi_license_url")) %>
144       </li>
145       <li>
146         <%= t ".legal_babble.contributors_fr_credit_html",
147               :france => tag.strong(t(".legal_babble.contributors_fr_france")) %>
148       </li>
149       <li>
150         <%= t ".legal_babble.contributors_hr_credit_html",
151               :croatia => tag.strong(t(".legal_babble.contributors_hr_croatia")),
152               :dgu_link => link_to(t(".legal_babble.contributors_hr_dgu"),
153                                    t(".legal_babble.contributors_hr_dgu_url")),
154               :open_data_portal => link_to(t(".legal_babble.contributors_hr_open_data_portal"),
155                                            t(".legal_babble.contributors_hr_open_data_portal_url")) %>
156       </li>
157       <li>
158         <%= t ".legal_babble.contributors_nl_credit_html",
159               :netherlands => tag.strong(t(".legal_babble.contributors_nl_netherlands")),
160               :and_link => link_to(t(".legal_babble.contributors_nl_and"),
161                                    t(".legal_babble.contributors_nl_and_url")) %>
162       </li>
163       <li>
164         <%= t ".legal_babble.contributors_nz_credit_html",
165               :new_zealand => tag.strong(t(".legal_babble.contributors_nz_new_zealand")),
166               :linz_data_service_link => link_to(t(".legal_babble.contributors_nz_linz_data_service"),
167                                                  t(".legal_babble.contributors_nz_linz_data_service_url")),
168               :cc_by_link => link_to(t(".legal_babble.contributors_nz_cc_by"),
169                                      t(".legal_babble.contributors_nz_cc_by_url")) %>
170       </li>
171       <li>
172         <%= t ".legal_babble.contributors_rs_credit_html",
173               :serbia => tag.strong(t(".legal_babble.contributors_rs_serbia")),
174               :rgz_link => link_to(t(".legal_babble.contributors_rs_rgz"),
175                                    t(".legal_babble.contributors_rs_rgz_url")),
176               :open_data_portal => link_to(t(".legal_babble.contributors_rs_open_data_portal"),
177                                            t(".legal_babble.contributors_rs_open_data_portal_url")) %>
178       </li>
179       <li>
180         <%= t ".legal_babble.contributors_si_credit_html",
181               :slovenia => tag.strong(t(".legal_babble.contributors_si_slovenia")),
182               :gu_link => link_to(t(".legal_babble.contributors_si_gu"),
183                                   t(".legal_babble.contributors_si_gu_url")),
184               :mkgp_link => link_to(t(".legal_babble.contributors_si_mkgp"),
185                                     t(".legal_babble.contributors_si_mkgp_url")) %>
186       </li>
187       <li>
188         <%= t ".legal_babble.contributors_es_credit_html",
189               :spain => tag.strong(t(".legal_babble.contributors_es_spain")),
190               :ign_link => link_to(t(".legal_babble.contributors_es_ign"),
191                                    t(".legal_babble.contributors_es_ign_url")),
192               :scne_link => link_to(t(".legal_babble.contributors_es_scne"),
193                                     t(".legal_babble.contributors_es_scne_url")),
194               :cc_by_link => link_to(t(".legal_babble.contributors_es_cc_by"),
195                                      t(".legal_babble.contributors_es_cc_by_url")) %>
196       </li>
197       <li>
198         <%= t ".legal_babble.contributors_za_credit_html",
199               :south_africa => tag.strong(t(".legal_babble.contributors_za_south_africa")),
200               :ngi_link => link_to(t(".legal_babble.contributors_za_ngi"),
201                                    t(".legal_babble.contributors_za_ngi_url")) %>
202       </li>
203       <li>
204         <%= t ".legal_babble.contributors_gb_credit_html",
205               :united_kingdom => tag.strong(t(".legal_babble.contributors_gb_united_kingdom")) %>
206       </li>
207     </ul>
208     <p>
209       <%= t ".legal_babble.contributors_2_html",
210             :contributors_page_link => link_to(t(".legal_babble.contributors_2_contributors_page"),
211                                                t(".legal_babble.contributors_2_contributors_page_url")) %>
212     </p>
213     <p><%= t ".legal_babble.contributors_footer_2_html" %></p>
214   <% end %>
215 <% end %>