reprogl
1{{range .Comments}}
2<div class="comment-item depth-{{.Depth}}">
3<div class="comment-header">
4<div class="avatar">
5<img src="{{.Avatar}}"
6width="80"
7height="80"
8alt="avatar"/>
9</div>
10{{time_tag .CreatedAt}}
11{{if .Deleted -}}
12(⊙_⊙)
13{{- else -}}
14{{- if and .Website.Valid (not .RottenLink) -}}
15<a href="{{.Website.String}}">{{.Name}}</a>
16{{- else -}}
17{{.Name}}
18{{- end -}}
19{{- end}}
20{{if $.HasIdentity -}}
21{{- if $.IsAdmin -}}
22{{- if .IP.Valid -}}
23[{{.IP.String}}]
24{{- end -}}
25{{- end -}}
26{{emojiFlag .CountryCode}}
27{{- end}}
28</div>
29<div class="comment-body">
30<div class="avatar">
31<img src="{{.Avatar}}"
32width="80"
33height="80"
34alt="avatar"/>
35</div>
36<div class="comment-text" {{if .Deleted}}style="color: grey;"{{end}}>
37{{- if .Deleted -}}
38Комментарий удалён
39{{- else -}}
40{{- raw (nl2br .Text) -}}
41{{- end -}}
42{{if and $.IsAdmin .UserAgent.Valid -}}
43<hr>
44<span class="ua-note">{{.UserAgent.String}}</span>
45{{- end -}}
46</div>
47{{if $.EnabledComments -}}
48<div class="comment-reply">
49<span data-comment-id="{{.ID}}">ответить</span>
50</div>
51{{- end}}
52</div>
53</div>
54<div id="form_bottom_{{.ID}}" class="form-bottom-comment"></div>
55{{end}}
56