Allow type-specific notification CSS
authorPete <pete@debu.gs>
Mon, 7 Sep 2020 08:13:45 +0000 (01:13 -0700)
committerPete <pete@debu.gs>
Mon, 7 Sep 2020 08:13:45 +0000 (01:13 -0700)
templates/notification.tmpl

index a31b90907200ee507306f66f6d766ef76a77ca05..b3e730ee0fc2b3808743177fd7e244e0f5eea060 100644 (file)
@@ -15,7 +15,7 @@
 </div>
 
 {{range .Notifications}}
-<div class="notification-container {{(StatusColor .Account.Acct)}} {{if .Pleroma}}{{if not .Pleroma.IsSeen}}unread{{end}}{{end}}">
+<div class="notification-container {{.Type}} {{(StatusColor .Account.Acct)}} {{if .Pleroma}}{{if not .Pleroma.IsSeen}}unread{{end}}{{end}}">
        {{if eq .Type "follow"}}
        <div class="notification-follow-container">
                <div class="status-profile-img-container">