Skip to content

Commit

Permalink
Merge pull request #786 from MITLibraries/add-app-name-to-header
Browse files Browse the repository at this point in the history
Update theme gem and document PLATFORM_NAME variable
  • Loading branch information
jazairi authored Feb 9, 2024
2 parents d267e10 + fb8b70c commit 369cd40
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ gem 'flipflop'
gem 'graphql'
gem 'jwt'
gem 'lograge'
gem 'mitlibraries-theme', git: 'https://github.com/mitlibraries/mitlibraries-theme', tag: 'v1.1'
gem 'mitlibraries-theme', git: 'https://github.com/mitlibraries/mitlibraries-theme', tag: 'v1.2'
gem 'opensearch-ruby'
gem 'puma'
gem 'rack-attack'
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GIT
remote: https://github.com/mitlibraries/mitlibraries-theme
revision: 93b931b802485f9e35a6878f957b3fd88ae3b294
tag: v1.1
revision: bcbe5d3de36a92d275085a045c5c4d8f30f33e62
tag: v1.2
specs:
mitlibraries-theme (1.0.2)
rails (>= 6, < 8)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ locally.
confused.
```

- `PLATFORM_NAME`: The value set is added to the header after the MIT Libraries logo. The logic and CSS for this comes from our theme gem.
- `PREFERRED_DOMAIN` - set this to the domain you would like to to use. Any
other requests that come to the app will redirect to the root of this domain.
This is useful to prevent access to herokuapp.com domains.
Expand Down
8 changes: 5 additions & 3 deletions app/views/layouts/_site_nav.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<div class="wrap-outer-header-local layout-band">
<div class="wrap-header-local">
<div class="local-identity">
<h2 class="title title-site"><a href="/">TIMDEX</a></h2>
</div>
<% unless ENV['PLATFORM_NAME'] %>
<div class="local-identity">
<h2 class="title title-site"><a href="/">TIMDEX</a></h2>
</div>
<% end %>
<div class="wrap-local-nav">
<div class="wrap-bar">
<nav class="local-nav" aria-label="Main menu">
Expand Down

0 comments on commit 369cd40

Please sign in to comment.