Skip to content

Commit e2d5bfa

Browse files
authored
Merge pull request #1276 from MITLibraries/add-app-name-to-header
Update theme gem and document PLATFORM_NAME variable
2 parents 802712b + d6a12b8 commit e2d5bfa

4 files changed

Lines changed: 10 additions & 6 deletions

File tree

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gem 'json'
1919
gem 'kaminari'
2020
gem 'lograge'
2121
gem 'marc'
22-
gem 'mitlibraries-theme', git: 'https://github.com/mitlibraries/mitlibraries-theme', tag: 'v1.1'
22+
gem 'mitlibraries-theme', git: 'https://github.com/mitlibraries/mitlibraries-theme', tag: 'v1.2'
2323
gem 'net-imap', require: false
2424
gem 'net-pop', require: false
2525
gem 'net-smtp', require: false

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GIT
22
remote: https://github.com/mitlibraries/mitlibraries-theme
3-
revision: 93b931b802485f9e35a6878f957b3fd88ae3b294
4-
tag: v1.1
3+
revision: bcbe5d3de36a92d275085a045c5c4d8f30f33e62
4+
tag: v1.2
55
specs:
66
mitlibraries-theme (1.0.2)
77
rails (>= 6, < 8)

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ override easily with this ENV if you need to get more details.
100100
transfers and informs transfer submitters that the application is under maintenance.
101101
`MAINTENANCE_MESSAGE_TRANSFER` - provides a custom message to transfer submitters if more details are necessary.
102102

103+
`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.
104+
103105
`PREFERRED_DOMAIN` - set this to the domain you would like to use. Any other
104106
requests that come to the app will redirect to the root of this domain. This is
105107
useful to prevent access to herokuapp.com domains as well as any legacy domains

app/views/layouts/_site_nav.html.erb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<div class="wrap-outer-header-local layout-band">
22
<div class="wrap-header-local">
3-
<div class="local-identity">
4-
<h2 class="title title-site"><%= link_to "Thesis Submission at MIT Libraries", root_path %></h2>
5-
</div>
3+
<% unless ENV['PLATFORM_NAME'] %>
4+
<div class="local-identity">
5+
<h2 class="title title-site"><%= link_to "Thesis Submission at MIT Libraries", root_path %></h2>
6+
</div>
7+
<% end %>
68
<div class="wrap-local-nav">
79
<div class="wrap-bar">
810
<nav class="local-nav" aria-label="Main menu">

0 commit comments

Comments
 (0)