2016-12-07 09:34:09 +00:00
|
|
|
{{template "header.html" . }}
|
2016-12-09 13:46:29 +00:00
|
|
|
<div class="colblock_left" style="max-width: 220px;">
|
2016-12-07 09:34:09 +00:00
|
|
|
<div class="rowitem" style="padding: 0;"><img src="{{.Something.Avatar}}" style="max-width: 100%;margin: 0;"/></div>
|
|
|
|
<div class="rowitem">{{.Something.Name}}</div>
|
|
|
|
<div class="rowitem passive">
|
|
|
|
<a class="username">Add Friend</a>
|
2016-12-08 14:11:18 +00:00
|
|
|
{{if (.CurrentUser.Is_Super_Mod) and not (.Something.Is_Super_Mod) }}
|
|
|
|
{{if .Something.Is_Banned }}<a href="/users/unban/{{.Something.ID}}" class="username">Unban</a>{{else}}<a href="/users/ban/{{.Something.ID}}" class="username">Ban</a>{{end}}
|
|
|
|
{{end}}
|
2016-12-07 09:34:09 +00:00
|
|
|
<a class="username">Report</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="colblock_right">
|
|
|
|
<div class="rowitem"><a>Comments</a></div>
|
|
|
|
</div>
|
|
|
|
<div class="colblock_right" style="overflow: hidden;">
|
|
|
|
{{range $index, $element := .ItemList}}
|
2016-12-07 13:46:14 +00:00
|
|
|
<div class="rowitem passive deletable_block editable_parent" style="{{ if $element.Avatar }}background-image: url({{$element.Avatar}}), url(/static/white-dot.jpg);background-position: 0px {{if le $element.ContentLines 5}}-1{{end}}0px;background-repeat: no-repeat, repeat-y;background-size: 128px;padding-left: 136px;{{$element.Css}}{{end}}">
|
2016-12-08 14:11:18 +00:00
|
|
|
<span class="editable_block user_content">{{$element.ContentHtml}}</span>
|
2016-12-07 09:34:09 +00:00
|
|
|
<br /><br />
|
|
|
|
<a href="/user/{{$element.CreatedBy}}" class="username">{{$element.CreatedByName}}</a>
|
2016-12-07 13:46:14 +00:00
|
|
|
{{if $.CurrentUser.Is_Mod}}<a href="/profile/reply/edit/submit/{{$element.ID}}"><button class="username edit_item">Edit</button></a>
|
2016-12-07 09:34:09 +00:00
|
|
|
<a href="/profile/reply/delete/submit/{{$element.ID}}"><button class="username delete_item">Delete</button></a>{{end}}
|
|
|
|
<a href="/profile/reply/report/submit/{{$element.ID}}"><button class="username report_item">Report</button></a>
|
|
|
|
{{ if $element.Tag }}<a class="username" style="float: right;">{{$element.Tag}}</a>{{end}}
|
|
|
|
</div>{{end}}
|
|
|
|
</div>
|
|
|
|
{{if not .CurrentUser.Is_Banned}}
|
|
|
|
<div class="colblock_right">
|
|
|
|
<form action="/profile/reply/create/" method="post">
|
|
|
|
<input name="uid" value='{{.Something.ID}}' type="hidden" />
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem"><textarea name="reply-content" placeholder="Insert reply here"></textarea></div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
2016-12-08 14:11:18 +00:00
|
|
|
<div class="formitem"><button name="reply-button" class="formbutton">Create Reply</button></div>
|
2016-12-07 09:34:09 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{template "footer.html" . }}
|