Skip to content

Commit

Permalink
Adding links about GDPR compliance to the footer (addresses issue soz…
Browse files Browse the repository at this point in the history
  • Loading branch information
Katharina Sabel committed May 23, 2018
1 parent 2c7c127 commit 3c78f20
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ def community_imprint_url
end
end

def community_privacy_url
if I18n.locale == :de
'https://news.wheelmap.org/datenschutzbestimmungen/'
else
'https://news.wheelmap.org/en/privacy/'
end
end

def community_newsletter_url
if I18n.locale == :de
'https://news.wheelmap.org/kontakt/'
Expand Down
2 changes: 2 additions & 0 deletions app/views/relaunch/_footer.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
= image_tag('[email protected]', :size => '45x20', :alt => 'Allianz Logo', :title => 'Allianz', :style => "margin-top: -3px;height:20px")
%li
= link_to t('header.navigation.imprint'), community_imprint_url, :target => '_blank'
%li
= link_to t('header.navigation.privacy'), community_privacy_url, :target => '_blank'
%li
%span= t('wheelmap.footer.a_project_of')
= link_to 'http://sozialhelden.de', :id => 'sozialhelden', :title => 'Sozialhelden' do
Expand Down

0 comments on commit 3c78f20

Please sign in to comment.