diff options
author | r <r@freesoftwareextremist.com> | 2021-01-16 09:26:59 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2021-01-16 09:49:24 +0000 |
commit | e7d24cfa8018a45dbd4ad27ef7a4981035c98ece (patch) | |
tree | 8f2b36cebe7f592c00cefb85f08250d506d3ddb6 /templates | |
parent | 91f68ccfb391ee53bfc36f4877ca8d8f63c8faf2 (diff) | |
download | bloat-e7d24cfa8018a45dbd4ad27ef7a4981035c98ece.tar.gz bloat-e7d24cfa8018a45dbd4ad27ef7a4981035c98ece.zip |
Add fallback notification
Diffstat (limited to 'templates')
-rw-r--r-- | templates/notification.tmpl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/notification.tmpl b/templates/notification.tmpl index 5563425..61353f5 100644 --- a/templates/notification.tmpl +++ b/templates/notification.tmpl @@ -97,6 +97,20 @@ </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}} |