Add fallback notification
authorr <r@freesoftwareextremist.com>
Sat, 16 Jan 2021 09:26:59 +0000 (09:26 +0000)
committerr <r@freesoftwareextremist.com>
Sat, 16 Jan 2021 09:49:24 +0000 (09:49 +0000)
templates/notification.tmpl

index 556342551862c5922385f503c7c13972fa4c932f..61353f51179805b56891f23506f7e1c55d6279b7 100644 (file)
                </span>
        </div>
        {{template "status" (WithContext .Status $.Ctx)}}
+
+       {{else}}
+       <div class="retweet-info">
+               <a class="img-link" href="/user/{{.Account.ID}}">
+                       <img class="status-profile-img" src="{{.Account.AvatarStatic}}" title="@{{.Account.Acct}}" alt="avatar" height="48" />
+               </a>
+               <a href="/user/{{.Account.ID}}">
+                       <span class="status-uname"> @{{.Account.Acct}} </span>
+               </a>
+               <span class="notification-text"> {{.Type}} - 
+                       <time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}">{{TimeSince .CreatedAt}}</time> 
+               </span>
+       </div>
+       {{if .Status}}{{template "status" (WithContext .Status $.Ctx)}}{{end}}
        {{end}}
 </div>
 {{end}}