]> git.openstreetmap.org Git - rails.git/blob - app/views/site/copyright.html.erb
Only require a readable database for login, not a writable one
[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 @locale == 'en' %>
14   <!-- Maybe ease foreigners back to their native page -->
15   <% if t('license_page.legal_babble', :locale => I18n.locale) != 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 <% else %>
29   <!-- Maybe note that this page has been translated -->
30   <% if t('license_page.legal_babble', :locale => @locale) != t('license_page.legal_babble', :locale => :en) %>
31     <h2><%= t 'license_page.foreign.title' %></h2>
32     <p>
33       <%= raw t 'license_page.foreign.text',
34                   :english_original_link => link_to(t('license_page.foreign.english_link'),
35                                                         :controller => 'site',
36                                                         :action => 'copyright',
37                                                         :copyright_locale => 'en') %>
38     </p>
39     <hr />
40   <% end %>
41 <% end %>
42
43 <%= raw t('license_page.legal_babble', :locale => @locale) %>