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" }}
|
{{ define "extrahead" }}
|
||||||
<style>
|
<style>
|
||||||
|
@ -9,12 +9,14 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
<div>
|
<div class="w-100 flex flex-column items-center pa3">
|
||||||
|
<div class="mw-site">
|
||||||
{{ range .UnapprovedUsers }}
|
{{ range .UnapprovedUsers }}
|
||||||
<div class="flex flex-row bg3 mb3 pa2">
|
<div class="flex flex-row bg3 mb3 pa2">
|
||||||
<div class="
|
<div class="
|
||||||
sidebar flex-shrink-0
|
sidebar flex-shrink-0
|
||||||
flex flex-column items-stretch-l
|
flex flex-column items-stretch-l
|
||||||
|
g2
|
||||||
overflow-hidden
|
overflow-hidden
|
||||||
" style="width: 200px;">
|
" style="width: 200px;">
|
||||||
<a class="db" href="{{ .User.ProfileUrl }}">{{ .User.Username }}</a>
|
<a class="db" href="{{ .User.ProfileUrl }}">{{ .User.Username }}</a>
|
||||||
|
@ -36,29 +38,29 @@
|
||||||
{{ range .UserLinks }}
|
{{ range .UserLinks }}
|
||||||
<div class="pair flex">
|
<div class="pair flex">
|
||||||
<div class="key flex-auto flex-shrink-0 mr2">{{ .Name }}</div>
|
<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>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div>{{ absoluteshortdate .User.DateJoined }}</div>
|
<div>{{ absoluteshortdate .User.DateJoined }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="flex flex-column g3">
|
||||||
<form method="POST" class="mb2" action="{{ $.SubmitUrl }}">
|
<form class="hmn-form" method="POST" class="mb2" action="{{ $.SubmitUrl }}">
|
||||||
{{ csrftoken $.Session }}
|
{{ csrftoken $.Session }}
|
||||||
<input type="hidden" name="action" value="{{ $.ApprovalAction }}" />
|
<input type="hidden" name="action" value="{{ $.ApprovalAction }}" />
|
||||||
<input type="hidden" name="user_id" value="{{ .User.ID }}" />
|
<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>
|
||||||
<form method="POST" action="{{ $.SubmitUrl }}">
|
<form class="hmn-form" method="POST" action="{{ $.SubmitUrl }}">
|
||||||
{{ csrftoken $.Session }}
|
{{ csrftoken $.Session }}
|
||||||
<input type="hidden" name="action" value="{{ $.SpammerAction }}" />
|
<input type="hidden" name="action" value="{{ $.SpammerAction }}" />
|
||||||
<input type="hidden" name="user_id" value="{{ .User.ID }}" />
|
<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>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-grow-1 flex flex-column ml3">
|
<div class="flex-grow-1 flex flex-column ml3 g2">
|
||||||
{{ range .ProjectsWithLinks }}
|
{{ range .ProjectsWithLinks }}
|
||||||
<div class="project-card flex br2 overflow-hidden items-center relative mv3 w-100">
|
<div class="project-card flex br2 overflow-hidden items-center relative mv3 w-100">
|
||||||
{{ with .Project.Logo }}
|
{{ with .Project.Logo }}
|
||||||
|
@ -90,5 +92,6 @@
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue