We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c293f08 commit 10693efCopy full SHA for 10693ef
lib/views/application.erb
@@ -44,7 +44,7 @@
44
<script type="module" src="https://cdn.jsdelivr.net/npm/@umich-lib/web@latest/dist/umich-lib/umich-lib.esm.js"></script>
45
<title><%= title %> | MGet It</title>
46
</head>
47
- <body class="no-js <%= body_class if !body_class.nil? %>">
+ <body class="no-js <%= (defined?(body_class) && body_class) ? body_class : '' %>">
48
<!-- Google Tag Manager (noscript) -->
49
<noscript>
50
<iframe
@@ -67,7 +67,7 @@
67
<m-universal-header></m-universal-header>
68
<%= erb :header, locals: {request: request} %>
69
70
- <% if callout.nil? %>
+ <% if !defined?(callout) || callout.nil? %>
71
<div class="heading-container">
72
<div class="container">
73
<h1 class="site-heading" id="maincontent" tabindex="-1">MGet It</h1>
0 commit comments