2016-12-07 09:34:09 +00:00
|
|
|
{{template "header.html" . }}
|
2017-11-23 05:37:08 +00:00
|
|
|
<div id="profile_container" class="colstack">
|
2017-11-06 16:24:45 +00:00
|
|
|
|
2017-07-29 10:36:39 +00:00
|
|
|
<div id="profile_left_lane" class="colstack_left">
|
|
|
|
<div id="profile_left_pane" class="rowmenu">
|
2017-11-12 07:18:25 +00:00
|
|
|
<div class="topBlock">
|
|
|
|
<div class="rowitem avatarRow">
|
2020-03-22 02:37:32 +00:00
|
|
|
<a href="{{.ProfileOwner.Avatar}}"><img src="{{.ProfileOwner.Avatar}}"class="avatar"alt="Avatar"title="{{.ProfileOwner.Name}}'s Avatar"aria-hidden="true"></a>
|
2017-11-12 07:18:25 +00:00
|
|
|
</div>
|
|
|
|
<div class="rowitem nameRow">
|
2018-03-31 05:25:27 +00:00
|
|
|
<span class="profileName" title="{{.ProfileOwner.Name}}">{{.ProfileOwner.Name}}</span>{{if .ProfileOwner.Tag}}<span class="username" title="{{.ProfileOwner.Tag}}">{{.ProfileOwner.Tag}}</span>{{end}}
|
2017-11-12 07:18:25 +00:00
|
|
|
</div>
|
2017-07-29 10:36:39 +00:00
|
|
|
</div>
|
2018-10-10 07:33:51 +00:00
|
|
|
<div class="levelBlock">
|
2018-10-08 05:34:25 +00:00
|
|
|
<div class="rowitem passive">
|
2018-10-24 12:54:07 +00:00
|
|
|
<div class="profile_menu_item level_inprogress">
|
|
|
|
<div class="levelBit">
|
|
|
|
<a>{{level .ProfileOwner.Level}}</a>
|
|
|
|
</div>
|
2019-07-28 10:42:30 +00:00
|
|
|
<div class="progressWrap"{{if ne .CurrentScore 0}} style="width:40%"{{end}}>
|
2018-10-24 12:54:07 +00:00
|
|
|
<div>{{.CurrentScore}} / {{.NextScore}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-10-08 05:34:25 +00:00
|
|
|
</div>
|
2018-10-10 07:33:51 +00:00
|
|
|
</div>
|
|
|
|
<div class="passiveBlock">
|
2018-02-26 09:07:00 +00:00
|
|
|
{{if not .CurrentUser.Loggedin}}<div class="rowitem passive">
|
2020-01-14 05:07:00 +00:00
|
|
|
<a class="profile_menu_item">{{lang "profile.login_for_options"}}</a>
|
2018-02-26 09:07:00 +00:00
|
|
|
</div>{{else}}
|
2019-10-19 10:33:59 +00:00
|
|
|
{{if .CanMessage}}<div class="rowitem passive">
|
2020-02-11 07:01:13 +00:00
|
|
|
<a href="/user/convos/create/?with={{.ProfileOwner.ID}}" class="profile_menu_item">{{lang "profile.send_message"}}</a>
|
2019-10-19 10:33:59 +00:00
|
|
|
</div>{{end}}
|
2018-02-26 09:07:00 +00:00
|
|
|
<!--<div class="rowitem passive">
|
2020-01-14 05:07:00 +00:00
|
|
|
<a class="profile_menu_item">{{lang "profile.add_friend"}}</a>
|
2018-02-26 09:07:00 +00:00
|
|
|
</div>-->
|
2020-01-14 05:07:00 +00:00
|
|
|
|
2019-10-19 10:33:59 +00:00
|
|
|
{{if (.CurrentUser.IsSuperMod) and not (.ProfileOwner.IsSuperMod)}}<div class="rowitem passive">
|
2020-01-14 05:07:00 +00:00
|
|
|
{{if .ProfileOwner.IsBanned}}<a href="/users/unban/{{.ProfileOwner.ID}}?s={{.CurrentUser.Session}}" class="profile_menu_item">{{lang "profile.unban"}}</a>
|
|
|
|
{{else}}<a href="#ban_user" class="profile_menu_item">{{lang "profile.ban"}}</a>{{end}}
|
|
|
|
</div>
|
2019-10-18 00:35:13 +00:00
|
|
|
<div class="rowitem passive">
|
2020-01-14 05:07:00 +00:00
|
|
|
<a href="#delete_posts" class="profile_menu_item">{{lang "profile.delete_posts"}}</a>
|
2019-10-18 00:35:13 +00:00
|
|
|
</div>
|
2020-01-14 05:07:00 +00:00
|
|
|
{{end}}
|
|
|
|
|
2017-11-10 00:16:15 +00:00
|
|
|
<div class="rowitem passive">
|
2020-01-14 05:07:00 +00:00
|
|
|
{{if .Blocked}}<a href="/user/block/remove/{{.ProfileOwner.ID}}" class="profile_menu_item">{{lang "profile.unblock"}}</a>{{else}}<a href="/user/block/create/{{.ProfileOwner.ID}}" class="profile_menu_item">{{lang "profile.block"}}</a>{{end}}
|
|
|
|
</div>
|
|
|
|
<div class="rowitem passive">
|
|
|
|
<a href="/report/submit/{{.ProfileOwner.ID}}?s={{.CurrentUser.Session}}&type=user" class="profile_menu_item report_item" aria-label="{{lang "profile.report_user_aria"}}" title="{{lang "profile.report_user_tooltip"}}"></a>
|
2017-11-10 00:16:15 +00:00
|
|
|
</div>
|
2018-02-26 09:07:00 +00:00
|
|
|
{{end}}
|
2017-07-29 10:36:39 +00:00
|
|
|
</div>
|
2016-12-07 09:34:09 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-05-29 14:52:37 +00:00
|
|
|
|
2017-07-29 10:36:39 +00:00
|
|
|
<div id="profile_right_lane" class="colstack_right">
|
2018-12-14 04:08:53 +00:00
|
|
|
{{if .CurrentUser.Loggedin}}
|
2017-08-27 09:33:45 +00:00
|
|
|
{{if .CurrentUser.Perms.BanUsers}}
|
2019-07-28 10:47:24 +00:00
|
|
|
<!-- TODO: Inline the display:none; CSS -->
|
|
|
|
<div id="ban_user_head" class="colstack_item colstack_head hash_hide ban_user_hash" style="display:none;">
|
2020-01-14 05:07:00 +00:00
|
|
|
<div class="rowitem"><h1><a>{{lang "profile.ban_user_head"}}</a></h1></div>
|
2017-07-29 10:36:39 +00:00
|
|
|
</div>
|
2019-07-28 10:47:24 +00:00
|
|
|
<form id="ban_user_form" class="hash_hide ban_user_hash" action="/users/ban/submit/{{.ProfileOwner.ID}}?s={{.CurrentUser.Session}}" method="post" style="display:none;">
|
2019-02-28 07:28:17 +00:00
|
|
|
<div class="the_form">
|
2017-09-10 16:57:22 +00:00
|
|
|
{{/** TODO: Put a JS duration calculator here instead of this text? **/}}
|
2020-01-14 05:07:00 +00:00
|
|
|
<div class="colline">{{lang "profile.ban_user_notice"}}</div>
|
2017-08-27 09:33:45 +00:00
|
|
|
<div class="colstack_item">
|
|
|
|
<div class="formrow real_first_child">
|
2020-01-14 05:07:00 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "profile.ban_user_days"}}</a></div>
|
2017-08-27 09:33:45 +00:00
|
|
|
<div class="formitem">
|
2020-01-14 05:07:00 +00:00
|
|
|
<input name="dur-days" type="number" value=0 min=0/>
|
2017-08-27 09:33:45 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
2020-01-14 05:07:00 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "profile.ban_user_weeks"}}</a></div>
|
2017-08-27 09:33:45 +00:00
|
|
|
<div class="formitem">
|
2020-01-14 05:07:00 +00:00
|
|
|
<input name="dur-weeks" type="number" value=0 min=0/>
|
2017-08-27 09:33:45 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="formrow">
|
2020-01-14 05:07:00 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "profile.ban_user_months"}}</a></div>
|
2017-08-27 09:33:45 +00:00
|
|
|
<div class="formitem">
|
2020-01-14 05:07:00 +00:00
|
|
|
<input name="dur-months" type="number" value=0 min=0/>
|
2017-08-27 09:33:45 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-01-14 05:07:00 +00:00
|
|
|
<div class="formrow">
|
|
|
|
<div class="formitem formlabel"><a>{{lang "profile.ban_delete_posts"}}</a></div>
|
|
|
|
<div class="formitem"><select name="delete-posts">
|
|
|
|
<option value=1>{{lang "option_yes"}}</option>
|
|
|
|
<option selected value=0>{{lang "option_no"}}</option>
|
|
|
|
</select></div>
|
|
|
|
</div>
|
2018-11-29 07:27:17 +00:00
|
|
|
{{/**<!--<div class="formrow">
|
2020-01-14 05:07:00 +00:00
|
|
|
<div class="formitem formlabel"><a>{{lang "profile.ban_user_reason"}}</a></div>
|
2017-08-27 09:33:45 +00:00
|
|
|
<div class="formitem"><textarea name="ban-reason" placeholder="A really horrible person" required></textarea></div>
|
2018-11-29 07:27:17 +00:00
|
|
|
</div>-->**/}}
|
2017-08-27 09:33:45 +00:00
|
|
|
<div class="formrow">
|
2020-01-14 05:07:00 +00:00
|
|
|
<div class="formitem"><button name="ban-button" class="formbutton form_middle_button">{{lang "profile.ban_user_button"}}</button></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<div id="delete_posts_head" class="colstack_item colstack_head hash_hide delete_posts_hash" style="display:none;">
|
|
|
|
<div class="rowitem"><h1><a>{{lang "profile.delete_posts_head"}}</a></h1></div>
|
|
|
|
</div>
|
|
|
|
<form id="delete_posts_form" class="hash_hide delete_posts_hash" action="/users/delete-posts/submit/{{.ProfileOwner.ID}}?s={{.CurrentUser.Session}}" method="post" style="display:none;">
|
|
|
|
<div class="the_form">
|
|
|
|
<div class="colline">{{langf "profile.delete_posts_notice" .ProfileOwner.Posts}}</div>
|
|
|
|
<div class="colstack_item">
|
|
|
|
<div class="formrow real_first_child">
|
|
|
|
<div class="formitem"><button name="delete-posts-button" class="formbutton form_middle_button">{{lang "profile.delete_posts_button"}}</button></div>
|
2017-08-27 09:33:45 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-28 07:28:17 +00:00
|
|
|
</div>
|
2017-08-27 09:33:45 +00:00
|
|
|
</form>
|
|
|
|
{{end}}
|
2018-12-14 04:08:53 +00:00
|
|
|
{{end}}
|
2017-08-27 09:33:45 +00:00
|
|
|
|
2018-11-30 03:02:20 +00:00
|
|
|
<div id="profile_comments_head" class="colstack_item colstack_head hash_hide">
|
2020-01-14 05:07:00 +00:00
|
|
|
<div class="rowitem"><h1><a>{{lang "profile.comments_head"}}</a></h1></div>
|
2018-11-30 03:02:20 +00:00
|
|
|
</div>
|
2017-12-24 22:08:35 +00:00
|
|
|
<div id="profile_comments" class="colstack_item hash_hide">{{template "profile_comments_row.html" . }}</div>
|
2017-05-29 14:52:37 +00:00
|
|
|
|
2018-11-28 21:46:53 +00:00
|
|
|
{{if .CurrentUser.Loggedin}}
|
2019-10-19 10:33:59 +00:00
|
|
|
{{if .CanComment}}
|
2019-07-28 10:47:24 +00:00
|
|
|
<form id="profile_comments_form" class="hash_hide" action="/profile/reply/create/?s={{.CurrentUser.Session}}" method="post">
|
2017-07-29 10:36:39 +00:00
|
|
|
<input name="uid" value='{{.ProfileOwner.ID}}' type="hidden" />
|
2019-07-28 10:42:30 +00:00
|
|
|
<div class="colstack_item topic_reply_form" style="border-top:none;">
|
2017-07-29 10:36:39 +00:00
|
|
|
<div class="formrow">
|
2020-01-14 05:07:00 +00:00
|
|
|
<div class="formitem"><textarea class="input_content" name="content" placeholder="{{lang "profile.comments_form_content"}}"></textarea></div>
|
2017-07-29 10:36:39 +00:00
|
|
|
</div>
|
2017-12-24 22:08:35 +00:00
|
|
|
<div class="formrow quick_button_row">
|
2020-01-14 05:07:00 +00:00
|
|
|
<div class="formitem"><button name="reply-button" class="formbutton">{{lang "profile.comments_form_button"}}</button></div>
|
2017-07-29 10:36:39 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
2016-12-07 09:34:09 +00:00
|
|
|
{{end}}
|
2018-11-28 21:46:53 +00:00
|
|
|
{{else}}
|
2019-07-28 10:42:30 +00:00
|
|
|
<div class="colstack_item" style="border-top:none;">
|
2020-01-14 05:07:00 +00:00
|
|
|
<div class="rowitem passive">{{lang "profile.comments_form_guest"}}</div>
|
2018-11-28 21:46:53 +00:00
|
|
|
</div>
|
|
|
|
{{end}}
|
2017-01-08 16:02:19 +00:00
|
|
|
</div>
|
2017-05-29 14:52:37 +00:00
|
|
|
|
2017-11-06 16:24:45 +00:00
|
|
|
</div>
|
2019-03-04 06:43:07 +00:00
|
|
|
{{template "footer.html" . }}
|