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}}
|
|
|
|
{{range .ItemList}}
|
|
|
|
<div class="rowitem passive deletable_block editable_parent simple {{.ClassName}}" style="background-image: url({{.Avatar}}), url(/static/post-avatar-bg.jpg);background-position: 0px {{if le .ContentLines 5}}-1{{end}}0px;">
|
|
|
|
<span class="editable_block user_content simple">{{.ContentHtml}}</span>
|
|
|
|
<span class="controls">
|
|
|
|
<a href="{{.UserLink}}" class="real_username username">{{.CreatedByName}}</a>
|
|
|
|
|
2018-01-14 14:27:10 +00:00
|
|
|
{{if $.CurrentUser.IsMod}}<a href="/profile/reply/edit/submit/{{.ID}}?session={{$.CurrentUser.Session}}" class="mod_button" title="Edit Item"><button class="username edit_item edit_label"></button></a>
|
2017-12-22 03:32:23 +00:00
|
|
|
|
2018-01-14 14:27:10 +00:00
|
|
|
<a href="/profile/reply/delete/submit/{{.ID}}?session={{$.CurrentUser.Session}}" class="mod_button" title="Delete Item"><button class="username delete_item trash_label"></button></a>{{end}}
|
2017-12-22 03:32:23 +00:00
|
|
|
|
|
|
|
<a class="mod_button" href="/report/submit/{{.ID}}?session={{$.CurrentUser.Session}}&type=user-reply"><button class="username report_item flag_label"></button></a>
|
|
|
|
|
|
|
|
{{if .Tag}}<a class="username hide_on_mobile user_tag" style="float: right;">{{.Tag}}</a>{{end}}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{else}}
|
|
|
|
{{range .ItemList}}
|
|
|
|
<div class="rowitem passive deletable_block editable_parent comment {{.ClassName}}">
|
2018-01-20 06:50:29 +00:00
|
|
|
<div class="topRow">
|
|
|
|
<div class="userbit">
|
|
|
|
<img src="{{.Avatar}}" alt="{{.CreatedByName}}'s Avatar" title="{{.CreatedByName}}'s Avatar" />
|
|
|
|
<span class="nameAndTitle">
|
|
|
|
<a href="{{.UserLink}}" class="real_username username">{{.CreatedByName}}</a>
|
|
|
|
{{if .Tag}}<a class="username hide_on_mobile user_tag" style="float: right;">{{.Tag}}</a>{{end}}
|
|
|
|
</span>
|
|
|
|
</div>
|
2017-12-22 03:32:23 +00:00
|
|
|
<span class="controls">
|
|
|
|
{{if $.CurrentUser.IsMod}}
|
2018-01-14 14:27:10 +00:00
|
|
|
<a href="/profile/reply/edit/submit/{{.ID}}?session={{$.CurrentUser.Session}}" class="mod_button" title="Edit Item"><button class="username edit_item edit_label"></button></a>
|
|
|
|
<a href="/profile/reply/delete/submit/{{.ID}}?session={{$.CurrentUser.Session}}" class="mod_button" title="Delete Item"><button class="username delete_item trash_label"></button></a>
|
2017-12-22 03:32:23 +00:00
|
|
|
{{end}}
|
|
|
|
<a class="mod_button" href="/report/submit/{{.ID}}?session={{$.CurrentUser.Session}}&type=user-reply"><button class="username report_item flag_label"></button></a>
|
|
|
|
</span>
|
|
|
|
</div>
|
2018-01-20 06:50:29 +00:00
|
|
|
<div class="content_column">
|
|
|
|
<span class="editable_block user_content">{{.ContentHtml}}</span>
|
|
|
|
</div>
|
2017-12-22 03:32:23 +00:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|