Skip to content

Commit

Permalink
Removed KBCookie and added link to Cookie- og Privatlivspolitik
Browse files Browse the repository at this point in the history
  • Loading branch information
naderak committed May 25, 2018
1 parent ca4c56a commit 8085c79
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 18 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ gem 'high_voltage', '~> 3.0.0'
#Used in openseadragon
gem 'font-awesome-rails'

# kb cookie policy
gem 'kbcookie', '>=0.0.1', :git => 'https://github.com/Det-Kongelige-Bibliotek/kbcookie.git'
# Makes it possible to xraying the partials from the browser

# jstree
Expand Down
9 changes: 1 addition & 8 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
GIT
remote: https://github.com/Det-Kongelige-Bibliotek/kbcookie.git
revision: 6e7e7751b34560f062b5ef21c6d1726784a4b89b
specs:
kbcookie (0.0.1)

GEM
remote: https://rubygems.org/
specs:
Expand Down Expand Up @@ -264,7 +258,6 @@ DEPENDENCIES
jquery-turbolinks
jquery-ui-rails
jstree-rails-4
kbcookie (>= 0.0.1)!
listen (~> 3.0.5)
perfect-scrollbar-rails
puma (~> 3.0)
Expand All @@ -283,4 +276,4 @@ DEPENDENCIES
xray-rails

BUNDLED WITH
1.15.1
1.16.0
3 changes: 0 additions & 3 deletions app/views/pages/politik.html.erb

This file was deleted.

19 changes: 14 additions & 5 deletions app/views/shared/_footer.html.erb
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
<%
if 'da'.eql?(params[:locale])
plink = "http://www.kb.dk/da/kb/webstedet/cookiepolitik.html"
ptext = "Cookie- og Privatlivspolitik"
else
plink = "http://www.kb.dk/en/kb/webstedet/cookiepolitik.html"
ptext = "Cookie- and Privacy policy"
end
%>

<footer class="pageFooter dkbreveFooter">
<div class="container">
<div class="row text-center hidden-xs">
<sp>
<span>
<a href="http://www.kb.dk" target="_blank">
<span>
<h5>Det Kgl. Bibliotek</h5>
</span>
</a>
</sp
</span>
<span>|</span>
<span>
<%= link_to 'Cookie- og Privatlivspolitik', page_path('politik'), class: '', :target => '_blank' %>
<a href="<%= plink %>" target="_blank"><%= ptext %></a>
</span>
<span>|</span>
<span>
Expand All @@ -23,8 +33,7 @@
Det Kgl. Bibliotek
</a>
</div>

<div class="col-sm-12"><%= link_to 'Cookie- og Privatlivspolitik', page_path('politik'), class: '' , :target => "_blank" %></div>
<div class="col-sm-12"><a href="<%= plink %>" target="_blank"><%= ptext %></a></div>
<div class="col-sm-12"><%= link_to t('blacklight.footer_links.info'), t('blacklight.footer_links.link'), class: '' , :target => '_blank' %></div>
</div>
</div>
Expand Down

0 comments on commit 8085c79

Please sign in to comment.