Skip to content

Commit 10693ef

Browse files
committed
bugfixes.
1 parent c293f08 commit 10693ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/views/application.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<script type="module" src="https://cdn.jsdelivr.net/npm/@umich-lib/web@latest/dist/umich-lib/umich-lib.esm.js"></script>
4545
<title><%= title %> | MGet It</title>
4646
</head>
47-
<body class="no-js <%= body_class if !body_class.nil? %>">
47+
<body class="no-js <%= (defined?(body_class) && body_class) ? body_class : '' %>">
4848
<!-- Google Tag Manager (noscript) -->
4949
<noscript>
5050
<iframe
@@ -67,7 +67,7 @@
6767
<m-universal-header></m-universal-header>
6868
<%= erb :header, locals: {request: request} %>
6969

70-
<% if callout.nil? %>
70+
<% if !defined?(callout) || callout.nil? %>
7171
<div class="heading-container">
7272
<div class="container">
7373
<h1 class="site-heading" id="maincontent" tabindex="-1">MGet It</h1>

0 commit comments

Comments
 (0)