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;">
|
2017-01-08 16:02:19 +00:00
|
|
|
<div class="rowitem" style="padding: 0;"><img src="{{.ProfileOwner.Avatar}}" style="max-width: 100%;margin: 0;display: block;" /></div>
|
2016-12-13 02:14:14 +00:00
|
|
|
<div class="rowitem" style="text-transform: capitalize;">
|
2016-12-26 04:44:07 +00:00
|
|
|
<span style="font-size: 18px;">{{.ProfileOwner.Name}}</span>{{if .ProfileOwner.Tag}}<span class="username" style="float: right;font-weight: normal;">{{.ProfileOwner.Tag}}</span>{{end}}
|
2016-12-13 02:14:14 +00:00
|
|
|
</div>
|
2016-12-07 09:34:09 +00:00
|
|
|
<div class="rowitem passive">
|
|
|
|
<a class="username">Add Friend</a>
|
2016-12-26 04:44:07 +00:00
|
|
|
{{if (.CurrentUser.Is_Super_Mod) and not (.ProfileOwner.Is_Super_Mod) }}
|
|
|
|
{{if .ProfileOwner.Is_Banned }}<a href="/users/unban/{{.ProfileOwner.ID}}?session={{.CurrentUser.Session}}" class="username">Unban</a>{{else}}<a href="/users/ban/{{.ProfileOwner.ID}}?session={{.CurrentUser.Session}}" class="username">Ban</a>{{end}}
|
2016-12-08 14:11:18 +00:00
|
|
|
{{end}}
|
2016-12-26 04:44:07 +00:00
|
|
|
<a href="/report/submit/{{.ProfileOwner.ID}}?session={{.CurrentUser.Session}}&type=user" class="username report_item">Report</a>
|
2016-12-07 09:34:09 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="colblock_right">
|
2017-01-07 06:31:04 +00:00
|
|
|
<div class="rowitem rowhead"><a>Comments</a></div>
|
2016-12-07 09:34:09 +00:00
|
|
|
</div>
|
2017-01-08 16:02:19 +00:00
|
|
|
<div class="colblock_right" style="overflow: hidden;border-top: none;">{{range .ItemList}}
|
2017-01-26 13:37:50 +00:00
|
|
|
<div class="rowitem passive deletable_block editable_parent simple" style="{{if .Avatar}}background-image: url({{.Avatar}}), url(/static/white-dot.jpg);background-position: 0px {{if le .ContentLines 5}}-1{{end}}0px;background-repeat: no-repeat, repeat-y;background-size: 128px;padding-left: 136px;{{.Css}}{{end}}">
|
2017-01-08 16:02:19 +00:00
|
|
|
<span class="editable_block user_content simple">{{.ContentHtml}}</span>
|
2016-12-07 09:34:09 +00:00
|
|
|
<br /><br />
|
2016-12-16 10:37:42 +00:00
|
|
|
<a href="/user/{{.CreatedBy}}" class="username">{{.CreatedByName}}</a>
|
|
|
|
{{if $.CurrentUser.Is_Mod}}<a href="/profile/reply/edit/submit/{{.ID}}"><button class="username edit_item">Edit</button></a>
|
|
|
|
<a href="/profile/reply/delete/submit/{{.ID}}"><button class="username delete_item">Delete</button></a>{{end}}
|
|
|
|
<a href="/report/submit/{{.ID}}?session={{$.CurrentUser.Session}}&type=user-reply"><button class="username report_item">Report</button></a>
|
2016-12-26 04:44:07 +00:00
|
|
|
{{ if .Tag }}<a class="username hide_on_mobile" style="float: right;">{{.Tag}}</a>{{end}}
|
2017-01-08 16:02:19 +00:00
|
|
|
</div>
|
|
|
|
{{end}}</div>
|
|
|
|
<div class="colblock_right" style="border-top: none;">
|
2016-12-07 09:34:09 +00:00
|
|
|
{{if not .CurrentUser.Is_Banned}}
|
2017-01-08 16:02:19 +00:00
|
|
|
<form action="/profile/reply/create/" method="post">
|
|
|
|
<input name="uid" value='{{.ProfileOwner.ID}}' type="hidden" />
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem"><textarea name="reply-content" placeholder="Insert reply here"></textarea></div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem"><button name="reply-button" class="formbutton">Create Reply</button></div>
|
|
|
|
</div>
|
|
|
|
</form>
|
2016-12-07 09:34:09 +00:00
|
|
|
{{end}}
|
2017-01-08 16:02:19 +00:00
|
|
|
</div>
|
2016-12-07 09:34:09 +00:00
|
|
|
{{template "footer.html" . }}
|