2022-08-15 00:45:55 +00:00
|
|
|
{{define "title"}}Blocked Users{{end}}
|
|
|
|
{{define "content"}}
|
|
|
|
<div class="container">
|
|
|
|
{{$Root := .}}
|
|
|
|
<section class="hero is-link is-bold">
|
|
|
|
<div class="hero-body">
|
|
|
|
<div class="container">
|
2024-12-06 05:49:19 +00:00
|
|
|
<h1 class="title">
|
|
|
|
<i class="fa fa-hand mr-2"></i>
|
|
|
|
Blocked Users
|
|
|
|
</h1>
|
2022-08-15 00:45:55 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<div class="p-4">
|
|
|
|
|
|
|
|
<div class="block">
|
|
|
|
You have blocked {{.Pager.Total}} user{{Pluralize64 .Pager.Total}}
|
|
|
|
(page {{.Pager.Page}} of {{.Pager.Pages}}).
|
|
|
|
</div>
|
|
|
|
|
2023-08-15 01:50:34 +00:00
|
|
|
<div class="has-text-centered block">
|
|
|
|
<a href="/users/blocklist/add" class="button is-primary is-outlined">
|
|
|
|
<span class="icon"><i class="fa fa-plus"></i></span>
|
|
|
|
<span>Add someone to my block list</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
2022-08-15 00:45:55 +00:00
|
|
|
<div class="block">
|
2023-06-22 03:46:27 +00:00
|
|
|
{{SimplePager .Pager}}
|
2022-08-15 00:45:55 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="columns is-multiline">
|
|
|
|
|
|
|
|
{{range .BlockedUsers}}
|
|
|
|
<div class="column is-half-tablet is-one-third-desktop">
|
|
|
|
|
|
|
|
<form action="/users/block" method="POST">
|
|
|
|
{{InputCSRF}}
|
|
|
|
<input type="hidden" name="username" value="{{.Username}}">
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-content">
|
|
|
|
<div class="media block">
|
|
|
|
<div class="media-left">
|
2022-09-09 04:42:20 +00:00
|
|
|
{{template "avatar-64x64" .}}
|
2022-08-15 00:45:55 +00:00
|
|
|
</div>
|
|
|
|
<div class="media-content">
|
2022-08-16 05:33:17 +00:00
|
|
|
<p class="title is-4">{{.NameOrUsername}}</p>
|
2022-08-15 00:45:55 +00:00
|
|
|
<p class="subtitle is-6">
|
|
|
|
<span class="icon"><i class="fa fa-user"></i></span>
|
|
|
|
<a href="/u/{{.Username}}">{{.Username}}</a>
|
|
|
|
{{if not .Certified}}
|
|
|
|
<span class="has-text-danger">
|
|
|
|
<span class="icon"><i class="fa fa-certificate"></i></span>
|
|
|
|
<span>Not Certified!</span>
|
|
|
|
</span>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{if .IsAdmin}}
|
|
|
|
<span class="has-text-danger">
|
2023-08-30 07:08:20 +00:00
|
|
|
<span class="icon"><i class="fa fa-peace"></i></span>
|
2022-08-15 00:45:55 +00:00
|
|
|
<span>Admin</span>
|
|
|
|
</span>
|
|
|
|
{{end}}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<footer class="card-footer">
|
|
|
|
<button type="submit" name="unblock" value="true" class="card-footer-item button is-danger">
|
|
|
|
<span class="icon"><i class="fa fa-xmark"></i></span>
|
|
|
|
<span>Unblock User</span>
|
|
|
|
</button>
|
|
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
{{end}}<!-- range .BlockedUsers -->
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-06-22 03:46:27 +00:00
|
|
|
{{end}}
|