FIX: Do not display broken image on crawler/print view (#6575)

This commit is contained in:
David Taylor 2018-11-07 22:28:45 +00:00 committed by GitHub
parent 9a34c6153e
commit 37fb8fc0e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,13 @@
<body class="crawler"> <body class="crawler">
<%= theme_lookup("header") %> <%= theme_lookup("header") %>
<header> <header>
<a href="<%= path "/" %>"><img src="<%=SiteSetting.logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo" style="max-width: 150px;"></a> <a href="<%= path "/" %>">
<%- if SiteSetting.logo_url.present? %>
<img src="<%=SiteSetting.logo_url%>" alt="<%=SiteSetting.title%>" id="site-logo" style="max-width: 150px;">
<%- else %>
<h1><%=SiteSetting.title%></h1>
<% end %>
</a>
</header> </header>
<div id="main-outlet" class="wrap"> <div id="main-outlet" class="wrap">
<%= yield %> <%= yield %>