aboutsummaryrefslogtreecommitdiff
path: root/templates/notification.tmpl
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-09-22 15:42:16 +0000
committerr <r@freesoftwareextremist.com>2020-09-22 16:35:50 +0000
commit5478b344796798e6aadd5554007f4ee85c347ebc (patch)
tree13688b60c14918cc5405521cc74efa99a6af52ed /templates/notification.tmpl
parentc753a74f49466d155fa432001f4c4aab53bb718f (diff)
downloadbloat-5478b344796798e6aadd5554007f4ee85c347ebc.tar.gz
bloat-5478b344796798e6aadd5554007f4ee85c347ebc.zip
Use '@' prefix for all usernames
Diffstat (limited to 'templates/notification.tmpl')
-rw-r--r--templates/notification.tmpl18
1 files changed, 11 insertions, 7 deletions
diff --git a/templates/notification.tmpl b/templates/notification.tmpl
index 2943847..55424da 100644
--- a/templates/notification.tmpl
+++ b/templates/notification.tmpl
@@ -22,7 +22,7 @@
<div>
<div class="status-profile-img-container">
<a class="img-link" href="/user/{{.Account.ID}}">
- <img class="status-profile-img" src="{{.Account.AvatarStatic}}" title="{{.Account.Acct}}" alt="profile-avatar" height="48" />
+ <img class="status-profile-img" src="{{.Account.AvatarStatic}}" title="@{{.Account.Acct}}" alt="profile-avatar" height="48" />
</a>
</div>
<div class="notification-follow">
@@ -33,8 +33,8 @@
- <time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}">{{TimeSince .CreatedAt}}</time>
</span>
</div>
- <div class="notification-follow-uname">
- @{{.Account.Acct}}
+ <div>
+ <a href="/user/{{.Account.ID}}"> <span class="status-uname"> @{{.Account.Acct}} </span> </a>
</div>
</div>
</div>
@@ -45,9 +45,11 @@
{{else if eq .Type "reblog"}}
<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" />
+ <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="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>
<span> retweeted your post </span>
<span>
- <time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}">{{TimeSince .CreatedAt}}</time>
@@ -58,9 +60,11 @@
{{else if eq .Type "favourite"}}
<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" />
+ <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="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>
<span> liked your post </span>
<span>
- <time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}">{{TimeSince .CreatedAt}}</time>