]> git.openstreetmap.org Git - rails.git/blob - app/views/site/copyright.html.erb
Display CT status on the user page
[rails.git] / app / views / site / copyright.html.erb
1 <p id="cc_logo">
2   <%= link_to(
3           image_tag("cc_button.png",
4               :alt => t('layouts.license.alt'),
5               :border => 0,
6               :width => 88,
7               :height => 31,
8               :title => t('layouts.license.title')),
9           "http://creativecommons.org/licenses/by-sa/2.0/",
10           { :rel => "license" }) %>
11 </p>
12
13 <% if I18n.locale == 'en' or params[:copyright_locale] == 'en' %>
14   <!-- Maybe ease foreigners back to their native page -->
15   <% if t('license_page.legal_babble') != t('license_page.legal_babble', :locale => :en) %>
16     <h2><%= t 'license_page.native.title' %></h2>
17     <p>
18       <%= raw t 'license_page.native.text',
19                   :native_link => link_to(t('license_page.native.native_link'),
20                                               :controller => 'site',
21                                               :action => 'copyright'),
22                   :mapping_link => link_to(t('license_page.native.mapping_link'),
23                                               :controller => 'site',
24                                               :action => 'index') %>
25     </p>
26     <hr />
27   <% end %>
28
29   <%= raw t('license_page.legal_babble', :locale => :en) %>
30 <% else %>
31   <!-- Maybe note that this page has been translated -->
32   <% if t('license_page.legal_babble') != t('license_page.legal_babble', :locale => :en) %>
33     <h2><%= t 'license_page.foreign.title' %></h2>
34     <p>
35       <%= raw t 'license_page.foreign.text',
36                   :english_original_link => link_to(t('license_page.foreign.english_link'),
37                                                         :controller => 'site',
38                                                         :action => 'copyright',
39                                                         :copyright_locale => 'en') %>
40     </p>
41     <hr />
42   <% end %>
43
44   <%= raw t('license_page.legal_babble') %>
45 <% end %>