Remove icons
[bloat] / templates / status.tmpl
1 {{with .Data}}
2 <div id="status-{{.ID}}" class="status-container-container">
3         {{if .Reblog}}
4         <div class="retweet-info">
5                 <a class="img-link" href="/user/{{.Account.ID}}">
6                         <img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="avatar" />
7                 </a>
8                 <span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span>  
9                 retweeted
10         </div>
11         {{template "status" (WithContext .Reblog $.Ctx)}}
12         {{else}}
13         {{block "status" (WithContext . $.Ctx)}}
14         {{with $s := .Data}}
15         <div class="status-container status-{{.ID}}" data-id="{{.ID}}">
16                 <div class="status-profile-img-container">
17                         <a class="img-link" href="/user/{{.Account.ID}}">
18                                 <img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="avatar" />
19                         </a>
20                 </div>
21                 <div class="status"> 
22                         <div class="status-name">
23                                 <span class="status-dname"> {{EmojiFilter .Account.DisplayName .Account.Emojis}} </span> 
24                                 <a href="/user/{{.Account.ID}}" >
25                                         <span class="status-uname"> {{.Account.Acct}} </span>
26                                 </a>
27                                 <span class="status-visibility">
28                                         {{.Visibility}}
29                                 </span>
30                                 <a class="remote-link" href="{{.URL}}" target="_blank" title="source">
31                                         source
32                                 </a>
33                         </div>
34                         <div class="status-reply-container">
35                                 {{if .InReplyToID}}
36                                 <div class="status-reply-to">
37                                         <a class="status-reply-to-link" href="{{if not .ShowReplies}}/thread/{{.InReplyToID}}{{end}}#status-{{.InReplyToID}}"> 
38                                                  reply to {{.Pleroma.InReplyToAccountAcct}} 
39                                         </a>
40                                 </div>
41                                 {{if index .ReplyMap .ID}} <span class="status-reply-info-divider"> - </span> {{end}}
42                                 {{end}}
43                                 {{if .ShowReplies}}
44                                 {{if index .ReplyMap .ID}} <span class="status-reply-text"> replies: </span> {{end}}
45                                 {{range index .ReplyMap .ID}}
46                                 <div class="status-reply">
47                                         <a class="status-reply-link" href="#status-{{.ID}}">#{{.Number}}</a>
48                                 </div>
49                                 {{end}}
50                                 {{end}}
51                         </div>
52                         {{if .Content}}
53                         <div class="status-content"> {{StatusContentFilter .SpoilerText .Content .Emojis .Mentions}} </div>
54                         {{end}}
55                         <div class="status-media-container">
56                         {{range .MediaAttachments}}
57                         {{if eq .Type "image"}}
58                         <a class="img-link" href="{{.URL}}" target="_blank">
59                                 <img class="status-image" src="{{.URL}}" alt="status-image" />
60                                 {{if (and $.Ctx.MaskNSFW $s.Sensitive)}}
61                                 <div class="status-nsfw-overlay"></div>
62                                 {{end}}
63                         </a>
64                         {{else if eq .Type "audio"}}
65                         <audio class="status-audio" controls preload="none">
66                                 <source src="{{.URL}}">
67                                 <p> Your browser doesn't support HTML5 audio </p>
68                         </audio>
69                         {{else if eq .Type "video"}}
70                         <div class="status-video-container">
71                                 <video class="status-video" controls preload="none">
72                                         <source src="{{.URL}}">
73                                         <p> Your browser doesn't support HTML5 video </p>
74                                 </video>
75                                 {{if (and $.Ctx.MaskNSFW $s.Sensitive)}}
76                                 <div class="status-nsfw-overlay"></div>
77                                 {{end}}
78                         </div>
79                         {{else}}
80                         <a href="{{.URL}}" target="_blank"> attachment </a>
81                         {{end}}
82                         {{end}}
83                         </div>
84                         <div class="status-action-container"> 
85                                 <div class="status-action">
86                                         <a href="/thread/{{.ID}}?reply=true#status-{{.ID}}" title="reply"> 
87                                                 reply
88                                         </a>
89                                         <a class="status-reply-count" href="/thread/{{.ID}}#status-{{.ID}}" {{if $.Ctx.ThreadInNewTab}}target="_blank"{{end}}>
90                                         {{if .RepliesCount}} ({{DisplayInteractionCount .RepliesCount}}) {{end}}
91                                         </a>
92                                 </div>
93                                 <div class="status-action">
94                                         {{if or (eq .Visibility "private") (eq .Visibility "direct")}}
95                                         <a class="status-retweet" title="this status cannot be retweeted"> 
96                                                 retweet
97                                         </a>
98                                         {{else}}
99                                         {{if .Reblogged}}
100                                         <form class="status-retweet" data-action="unretweet" action="/unretweet/{{.ID}}" method="post">
101                                                 <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
102                                                 <input type="hidden" name="retweeted_by_id" value="{{.RetweetedByID}}">
103                                                 <input type="submit" value="unretweet" class="btn-link" title="unretweet">
104                                         </form>
105                                         {{else}}
106                                         <form class="status-retweet" data-action="retweet" action="/retweet/{{.ID}}" method="post">
107                                                 <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
108                                                 <input type="hidden" name="retweeted_by_id" value="{{.RetweetedByID}}">
109                                                 <input type="submit" value="retweet" class="btn-link" title="retweet">
110                                         </form>
111                                         {{end}}
112                                         {{end}}
113                                         <a class="status-retweet-count" href="/retweetedby/{{.ID}}" title="click to see the the list"> 
114                                                 {{if .ReblogsCount}} ({{DisplayInteractionCount .ReblogsCount}}) {{end}}
115                                         </a>
116                                 </div>
117                                 <div class="status-action">
118                                         {{if .Favourited}}
119                                         <form class="status-like" data-action="unlike" action="/unlike/{{.ID}}" method="post">
120                                                 <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
121                                                 <input type="hidden" name="retweeted_by_id" value="{{.RetweetedByID}}">
122                                                 <input type="submit" value="unlike" class="btn-link" title="unlike">
123                                         </form>
124                                         {{else}}
125                                         <form class="status-like" data-action="like" action="/like/{{.ID}}" method="post">
126                                                 <input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
127                                                 <input type="hidden" name="retweeted_by_id" value="{{.RetweetedByID}}">
128                                                 <input type="submit" value="like" class="btn-link" title="like">
129                                         </form>
130                                         {{end}}
131                                         <a class="status-like-count" href="/likedby/{{.ID}}" title="click to see the the list"> 
132                                                 {{if .FavouritesCount}} ({{DisplayInteractionCount .FavouritesCount}}) {{end}}
133                                         </a>
134                                 </div>
135                                 <div class="status-action">
136                                         <a class="status-time" href="{{if not .ShowReplies}}/thread/{{.ID}}{{end}}#status-{{.ID}}" {{if $.Ctx.ThreadInNewTab}}target="_blank"{{end}}> 
137                                                 <time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}"> {{TimeSince .CreatedAt}} </time> 
138                                         </a>
139                                 </div>
140                         </div>
141                 </div>
142         </div>
143         {{end}}
144         {{end}}
145         {{end}}
146 </div>
147 {{end}}