Skip to content

Commit 0b47dcf

Browse files
committed
notifications should use MobileLogoPath if possible, falling back to SiteLogoPath
1 parent cdf5548 commit 0b47dcf

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

app/views/notifications/_notification.html.erb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@
55
notification : Notification to render
66
"%>
77

8+
<%
9+
mobile_logo_path = SiteSetting['MobileLogoPath', community: notification.community]
10+
full_logo_path = SiteSetting['SiteLogoPath', community: notification.community]
11+
logo_path = mobile_logo_path.presence || full_logo_path
12+
%>
13+
814
<div class="notification">
915
<div class="notification-content">
1016
<div class="form-caption">
11-
<% if SiteSetting['SiteLogoPath', community: notification.community].present? %>
17+
<% if logo_path.present? %>
1218
<img class="notification--icon"
13-
src="<%= SiteSetting['SiteLogoPath', community: notification.community] %>"
19+
src="<%= logo_path %>"
1420
alt="<% notification.community_name %> logo" />
1521
<% end %>
1622
<%= notification.community_name %> &middot; <%= notification.rendered_timestamp %>

0 commit comments

Comments
 (0)