Skip to content

Commit

Permalink
Add free access and use of cookies info to footer
Browse files Browse the repository at this point in the history
  • Loading branch information
jvendetti committed Dec 20, 2024
1 parent 96067e9 commit d41e847
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/bootstrap_overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ main > .container-fluid {

.footer {
width: 100%;
height: 300px; /* Set the fixed height of the footer here */
height: 310px; /* Set the fixed height of the footer here */
color: #757575;
background-color: #ccc;
color: #757575;
Expand Down
17 changes: 13 additions & 4 deletions app/views/layouts/_footer.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,31 @@
%div.row.legal-text
%div.col
= t('.grant_html')
%div.row.pt-2.legal-text
%div.row.pt-1.legal-text
%div.col
= t('.free_access', site: "#{$SITE}")
%div.row.pt-1.legal-text
%div.col
= t('.copyright_html')
%div.row.pt-2
%div.col
%ul.list-inline.nav
%li.list-inline-item.nav-item
= link_to('CITE US', Rails.configuration.settings.links[:cite], class: 'nav-link p-0', target: '_blank')
= link_to('Cite Us', Rails.configuration.settings.links[:cite], class: 'nav-link p-0', target: '_blank')
%li.list-inline-item
%i.fas.fa-ellipsis-v{"aria-hidden" => "true"}
%li.list-inline-item
= link_to('Privacy Policy', Rails.configuration.settings.links[:privacy_policy],class: 'nav-link p-0',
target: '_blank')
%li.list-inline-item
%i.fas.fa-ellipsis-v{"aria-hidden" => "true"}
%li.list-inline-item
= link_to('PRIVACY POLICY', Rails.configuration.settings.links[:privacy_policy],class: 'nav-link p-0',
= link_to('Terms of Use', Rails.configuration.settings.links[:terms], class: 'nav-link p-0',
target: '_blank')
%li.list-inline-item
%i.fas.fa-ellipsis-v{"aria-hidden" => "true"}
%li.list-inline-item
= link_to('TERMS', Rails.configuration.settings.links[:terms], class: 'nav-link p-0', target: '_blank')
= link_to('Use of Cookies', Rails.configuration.settings.links[:cookies], class: 'nav-link p-0',
target: '_blank')

= javascript_include_tag "application"
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ en:
layouts:
footer:
copyright_html: Copyright © 2005‑2024, The Board of Trustees of Leland Stanford Junior University. All rights reserved.
free_access: "%{site} is free and open to all users, with no login required."
grant_html: >
The <strong>National Center for Biomedical Ontology</strong> was founded as one of the National Centers for Biomedical
Computing, supported by the NHGRI, the NHLBI, and the NIH Common Fund under grant U54-HG004028.
Expand Down
1 change: 1 addition & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ shared:
links:
about: 'https://www.bioontology.org/about-us/'
cite: 'https://www.bioontology.org/about-us/#cite-bioportal'
cookies: 'https://www.bioontology.org/terms/#use-of-cookies'
facebook: 'https://www.facebook.com/National-Center-for-Biomedical-Ontology-127444774011153/'
github: 'http://github.com/ncbo'
help: 'https://www.bioontology.org/wiki/BioPortal_Help'
Expand Down

0 comments on commit d41e847

Please sign in to comment.