2017-12-22 03:32:23 +00:00
|
|
|
{{/** TODO: Temporary hack until we find a more granular way of doing this. Perhaps, a custom include function? **/}}
|
|
|
|
{{if .Header.Theme.BgAvatars}}
|
2019-08-14 10:39:04 +00:00
|
|
|
{{range .ItemList}}
|
2020-04-03 02:09:43 +00:00
|
|
|
<div id="post-{{.ID}}"class="rowitem passive deletable_block editable_parent simple {{.ClassName}}"style="background-image:url({{.Avatar}}),url(/s/post-avatar-bg.jpg);background-position:0px {{if le .ContentLines 5}}-1{{end}}0px;">
|
2019-08-14 10:39:04 +00:00
|
|
|
<span class="editable_block user_content simple">{{.ContentHtml}}</span>
|
|
|
|
<span class="controls">
|
2020-04-03 02:09:43 +00:00
|
|
|
<a href="{{.UserLink}}"class="real_username username">{{.CreatedByName}}</a>
|
2017-12-22 03:32:23 +00:00
|
|
|
|
2020-04-03 02:09:43 +00:00
|
|
|
{{if $.CurrentUser.IsMod}}<a href="/profile/reply/edit/submit/{{.ID}}?s={{$.CurrentUser.Session}}"class="mod_button"title="{{lang "profile.comments_edit_tooltip"}}" aria-label="{{lang "profile.comments_edit_aria"}}"><button class="username edit_item edit_label"></button></a>
|
2017-12-22 03:32:23 +00:00
|
|
|
|
2020-04-03 02:09:43 +00:00
|
|
|
<a href="/profile/reply/delete/submit/{{.ID}}?s={{$.CurrentUser.Session}}"class="mod_button"title="{{lang "profile.comments_delete_tooltip"}}" aria-label="{{lang "profile.comments_delete_aria"}}"><button class="username delete_item delete_label"></button></a>{{end}}
|
2017-12-22 03:32:23 +00:00
|
|
|
|
2020-04-03 02:09:43 +00:00
|
|
|
<a class="mod_button"href="/report/submit/{{.ID}}?s={{$.CurrentUser.Session}}&type=user-reply"><button class="username report_item flag_label"title="{{lang "profile.comments_report_tooltip"}}" aria-label="{{lang "profile.comments_report_aria"}}"></button></a>
|
2017-12-22 03:32:23 +00:00
|
|
|
|
2020-04-03 02:09:43 +00:00
|
|
|
{{if .Tag}}<a class="username hide_on_mobile user_tag"style="float:right;">{{.Tag}}</a>{{end}}
|
2019-08-14 10:39:04 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2017-12-22 03:32:23 +00:00
|
|
|
{{else}}
|
2019-02-10 05:52:26 +00:00
|
|
|
{{template "profile_comments_row_alt.html" . }}
|
2017-12-22 03:32:23 +00:00
|
|
|
{{end}}
|