-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix : Add language-specific anchors to footer section links and the cookie banner #760
Fix : Add language-specific anchors to footer section links and the cookie banner #760
Conversation
app/views/layouts/_footer.html.haml
Outdated
- section_links.each do |section , link| | ||
%a{:href => link, :target => "_blank"} | ||
- anchor_key = "layout.footer.#{section}_anchor" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it can be cleaner doing just this: - anchor = I18n.t("layout.footer.#{section}_anchor", default: "")
, but it needs to be tested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, it's cleaner that way. I tested it, works just fine
Update also the sample config file to be as you pointed in your "NB" |
4a7bae6
to
ba03b3c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work
Does not seems to work on StagePortal. |
@Bilelkihal you will need to update the config file as described in the description (and remember to do it in production also) |
Related issue #755.
Adding language-specific anchors to footer section links and the cookie banner so that it points to the correct language section in the docs.
NB:
bioportal_web_ui/config/bioportal_config_env.rb.sample
Lines 288 to 292 in 4cdc1aa