diff options
author | r <r@freesoftwareextremist.com> | 2019-12-13 18:08:26 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2019-12-13 18:26:24 +0000 |
commit | 5e4da01c3ae3ae2e870faba9085d9d9213c01c29 (patch) | |
tree | 39d6f1e76b901549f194ddbac3c6cb82e0abd019 /templates/status.tmpl | |
download | bloat-5e4da01c3ae3ae2e870faba9085d9d9213c01c29.tar.gz bloat-5e4da01c3ae3ae2e870faba9085d9d9213c01c29.zip |
Initial commit
Diffstat (limited to 'templates/status.tmpl')
-rw-r--r-- | templates/status.tmpl | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/templates/status.tmpl b/templates/status.tmpl new file mode 100644 index 0000000..47ff6e4 --- /dev/null +++ b/templates/status.tmpl @@ -0,0 +1,43 @@ +<div class="status-container"> + <div> + <img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" /> + </div> + <div class="status"> + <div class="status-name"> + <span class="status-dname"> {{WithEmojis .Account.DisplayName .Account.Emojis}} </span> + <span class="status-uname"> {{.Account.Acct}} </span> + </div> + <div class="status-content"> {{WithEmojis .Content .Emojis}} </div> + <div class="status-action"> + <a class="status-you" href="/thread/{{.ID}}?reply=true" title="reply"> + <span class="icon dripicons-reply"></span> + <span> {{DisplayInteractionCount .RepliesCount}} </span> + </a> + {{if .Reblogged}} + <a class="status-retweet" href="/unretweet/{{.ID}}" title="undo repost"> + <span class="icon dripicons-retweet retweeted"></span> + <span> {{DisplayInteractionCount .ReblogsCount}} </span> + </a> + {{else}} + <a class="status-retweet" href="/retweet/{{.ID}}" title="repost"> + <span class="icon dripicons-retweet"></span> + <span> {{DisplayInteractionCount .ReblogsCount}} </span> + </a> + {{end}} + {{if .Favourited}} + <a class="status-like" href="/unlike/{{.ID}}" title="unlike"> + <span class="icon dripicons-star liked"></span> + <span> {{DisplayInteractionCount .FavouritesCount}} </span> + </a> + {{else}} + <a class="status-like" href="/like/{{.ID}}" title="like"> + <span class="icon dripicons-star"></span> + <span> {{DisplayInteractionCount .FavouritesCount}} </span> + </a> + {{end}} + <a class="status-time" href="/thread/{{.ID}}"> + <time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{.CreatedAt}}"> {{TimeSince .CreatedAt}} </time> + </a> + </div> + </div> +</div> |