Skip to content

Commit

Permalink
Fix logo URL
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanHouston committed Mar 20, 2020
1 parent 7264605 commit 4fd3613
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ def knowledge_base_url
'https://openstax.secure.force.com/help/articles/FAQ/Can-t-log-in-to-your-OpenStax-account'
end

def openstax_url
'https://openstax.org'
def logo_url
Rails.application.secrets.openstax_url
end

def unless_errors(options={}, &block)
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/_main_menu.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="main-menu" role="menubar" aria-label="Main menu">
<span class="logo-wrapper">
<span class="logo">
<%= link_to openstax_url, 'aria-label': 'OpenStax Home Page' do %>
<%= link_to logo_url, 'aria-label': 'OpenStax Home Page' do %>
<%= image_tag 'openstax-logo.svg', class: 'logo-color', alt: 'OpenStax logo' %>
<% end %>
</span>
Expand Down
2 changes: 2 additions & 0 deletions config/secrets.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ development:

environment_name: development

openstax_url: https://cms-dev.openstax.org

# Exception email settings
exception:
contact_name: OpenStax Accounts
Expand Down

0 comments on commit 4fd3613

Please sign in to comment.