Skip to content

Commit 7984eda

Browse files
committed
added comunity logos to notifications
1 parent 0d0d5e8 commit 7984eda

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

app/assets/stylesheets/notifications.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
}
3535
}
3636

37+
.notification--icon {
38+
max-height: 1em;
39+
}
40+
3741
.notification--timestamp {
3842
line-break: strict;
3943
}

app/views/notifications/_notification.html.erb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
<div class="notification">
99
<div class="notification-content">
1010
<div class="form-caption">
11+
<% if SiteSetting['SiteLogoPath'].present? %>
12+
<img class="notification--icon"
13+
src="<%= SiteSetting['SiteLogoPath'] %>"
14+
alt="<% notification.community_name %> logo" />
15+
<% end %>
1116
<%= notification.community_name %> &middot; <%= notification.rendered_timestamp %>
1217
</div>
1318
<a href="<%= notification.link %>"><%= render_pings_text(notification.content) %></a>

0 commit comments

Comments
 (0)