Skip to content

Commit 20c3b96

Browse files
committed
Display title in nav only if PLATFORM_NAME is not set
Why these changes are being introduced: The app name is inserted into the header based on the `PLATFORM_NAME` environment variable. If this variable is set, the title should not display Relevant ticket(s): https://mitlibraries.atlassian.net/browse/GDT-124 How this addresses that need: This makes the title in the nav render if `PLATFORM_NAME` is not set. Side effects of this change: We will need to make this change downstream, as most (if not all) of our Rails properties have customized the site nav partial.
1 parent bcbe5d3 commit 20c3b96

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/views/layouts/_site_nav.html.erb

+5-3
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"><a href="/">Site Title</a></h2>
5-
</div>
3+
<%= unless ENV['PLATFORM_NAME'] %>
4+
<div class="local-identity">
5+
<h2 class="title title-site"><a href="/">Site Title</a></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)