From 20c3b9629ac3dbed4596ba53d36f010bf5084ca1 Mon Sep 17 00:00:00 2001 From: jazairi <16103405+jazairi@users.noreply.github.com> Date: Fri, 9 Feb 2024 10:48:54 -0500 Subject: [PATCH] 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. --- app/views/layouts/_site_nav.html.erb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/views/layouts/_site_nav.html.erb b/app/views/layouts/_site_nav.html.erb index 842491c..949ca88 100644 --- a/app/views/layouts/_site_nav.html.erb +++ b/app/views/layouts/_site_nav.html.erb @@ -1,8 +1,10 @@