Fixed approval queue
This commit is contained in:
parent
a22b44eb07
commit
ed41600061
|
@ -1,4 +1,4 @@
|
|||
{{ template "base.html" . }}
|
||||
{{ template "base-2024.html" . }}
|
||||
|
||||
{{ define "extrahead" }}
|
||||
<style>
|
||||
|
@ -9,12 +9,14 @@
|
|||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
<div>
|
||||
<div class="w-100 flex flex-column items-center pa3">
|
||||
<div class="mw-site">
|
||||
{{ range .UnapprovedUsers }}
|
||||
<div class="flex flex-row bg3 mb3 pa2">
|
||||
<div class="
|
||||
sidebar flex-shrink-0
|
||||
flex flex-column items-stretch-l
|
||||
g2
|
||||
overflow-hidden
|
||||
" style="width: 200px;">
|
||||
<a class="db" href="{{ .User.ProfileUrl }}">{{ .User.Username }}</a>
|
||||
|
@ -36,29 +38,29 @@
|
|||
{{ range .UserLinks }}
|
||||
<div class="pair flex">
|
||||
<div class="key flex-auto flex-shrink-0 mr2">{{ .Name }}</div>
|
||||
<div class="value projectlink truncate"><a class="external" href="{{ .Url }}" ><span class="icon-{{ .Icon }}"></span> {{ .LinkText }}</a></div>
|
||||
<div class="value projectlink truncate"><a class="external" href="{{ .Url }}" ><span class="icon-{{ .Icon }}"></span> {{ .ServiceName }}</a></div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<div>{{ absoluteshortdate .User.DateJoined }}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<form method="POST" class="mb2" action="{{ $.SubmitUrl }}">
|
||||
<div class="flex flex-column g3">
|
||||
<form class="hmn-form" method="POST" class="mb2" action="{{ $.SubmitUrl }}">
|
||||
{{ csrftoken $.Session }}
|
||||
<input type="hidden" name="action" value="{{ $.ApprovalAction }}" />
|
||||
<input type="hidden" name="user_id" value="{{ .User.ID }}" />
|
||||
<input type="submit" class="w-100" value="Approve User" />
|
||||
<input type="submit" class="w-100 btn-primary" value="Approve User" />
|
||||
</form>
|
||||
<form method="POST" action="{{ $.SubmitUrl }}">
|
||||
<form class="hmn-form" method="POST" action="{{ $.SubmitUrl }}">
|
||||
{{ csrftoken $.Session }}
|
||||
<input type="hidden" name="action" value="{{ $.SpammerAction }}" />
|
||||
<input type="hidden" name="user_id" value="{{ .User.ID }}" />
|
||||
<input type="submit" class="w-100" value="Mark as spammer" />
|
||||
<input type="submit" class="w-100 btn-primary" value="Mark as spammer" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-grow-1 flex flex-column ml3">
|
||||
<div class="flex-grow-1 flex flex-column ml3 g2">
|
||||
{{ range .ProjectsWithLinks }}
|
||||
<div class="project-card flex br2 overflow-hidden items-center relative mv3 w-100">
|
||||
{{ with .Project.Logo }}
|
||||
|
@ -90,5 +92,6 @@
|
|||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
|
|
Reference in New Issue