a
This commit is contained in:
parent
bf33128909
commit
acb494c730
2
main.go
2
main.go
|
@ -309,6 +309,8 @@ func generateEngine() *gin.Engine {
|
||||||
r.POST("/settings/2fa/totp", totpSetup)
|
r.POST("/settings/2fa/totp", totpSetup)
|
||||||
r.GET("/settings/discord/finish", discordFinish)
|
r.GET("/settings/discord/finish", discordFinish)
|
||||||
r.POST("/settings/profbackground/:type", profBackground)
|
r.POST("/settings/profbackground/:type", profBackground)
|
||||||
|
r.POST("/settings/clansettings", createInvite)
|
||||||
|
r.POST("settings/clansettings/k", clanKick)
|
||||||
|
|
||||||
r.POST("/dev/tokens/create", createAPIToken)
|
r.POST("/dev/tokens/create", createAPIToken)
|
||||||
r.POST("/dev/tokens/delete", deleteAPIToken)
|
r.POST("/dev/tokens/delete", deleteAPIToken)
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
|
|
||||||
{{ if $super }}
|
{{ if $super }}
|
||||||
<div class="owner">
|
<div class="owner">
|
||||||
{{ if $user.clan}}
|
{{ if $user.clan.tag}}
|
||||||
<td class="right aligned"><a href="/c/{{ $user.clan.id }}?mode=0">[{{ $user.clan.tag }}]</a></td>
|
<td class="right aligned"><a href="/c/{{ $user.clan.id }}?mode=0">[{{ $user.clan.tag }}]</a></td>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@ -74,13 +74,13 @@
|
||||||
</div>
|
</div>
|
||||||
{{else if $donor}}
|
{{else if $donor}}
|
||||||
<div class="dev">
|
<div class="dev">
|
||||||
{{ if $user.clan}}
|
{{ if $user.clan.tag}}
|
||||||
<td class="right aligned"><a href="/c/{{ $user.clan.id }}?mode=0">[{{ $user.clan.tag }}]</a></td>
|
<td class="right aligned"><a href="/c/{{ $user.clan.id }}?mode=0">[{{ $user.clan.tag }}]</a></td>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ .username }}
|
{{ .username }}
|
||||||
</div>
|
</div>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ if $user.clan}}
|
{{ if $user.clan.tag}}
|
||||||
<td class="right aligned"><a href="/c/{{ $user.clan.id }}?mode=0">[{{ $user.clan.tag }} ]</a></td>
|
<td class="right aligned"><a href="/c/{{ $user.clan.id }}?mode=0">[{{ $user.clan.tag }} ]</a></td>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ .username }}
|
{{ .username }}
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
{{ $user := . }}
|
{{ $user := . }}
|
||||||
{{ if $super }}
|
{{ if $super }}
|
||||||
<div class="owner">
|
<div class="owner">
|
||||||
{{ if $user.clan}}
|
{{ if $user.clan.tag }}
|
||||||
<td class="right aligned"><a href="/c/{{ $user.clan.id }}?mode=0">[{{ $user.clan.tag }}]</a></td>
|
<td class="right aligned"><a href="/c/{{ $user.clan.id }}?mode=0">[{{ $user.clan.tag }}]</a></td>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@ -73,13 +73,13 @@
|
||||||
</div>
|
</div>
|
||||||
{{else if $donor}}
|
{{else if $donor}}
|
||||||
<div class="dev">
|
<div class="dev">
|
||||||
{{ if $user.clan}}
|
{{ if $user.clan.tag}}
|
||||||
<td class="right aligned"><a href="/c/{{ $user.clan.id }}?mode=0">[{{ $user.clan.tag }}]</a></td>
|
<td class="right aligned"><a href="/c/{{ $user.clan.id }}?mode=0">[{{ $user.clan.tag }}]</a></td>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ .username }}
|
{{ .username }}
|
||||||
</div>
|
</div>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ if $user.clan}}
|
{{ if $user.clan.tag}}
|
||||||
<td class="right aligned"><a href="/c/{{ $user.clan.id }}?mode=0">[{{ $user.clan.tag }} ]</a></td>
|
<td class="right aligned"><a href="/c/{{ $user.clan.id }}?mode=0">[{{ $user.clan.tag }} ]</a></td>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ .username }}
|
{{ .username }}
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
{{ $user := . }}
|
{{ $user := . }}
|
||||||
{{ if $super }}
|
{{ if $super }}
|
||||||
<div class="owner">
|
<div class="owner">
|
||||||
{{ if $user.clan}}
|
{{ if $user.clan.tag}}
|
||||||
<td class="right aligned"><a href="/c/{{ $user.clan.id }}?mode=0">[{{ $user.clan.tag }}]</a></td>
|
<td class="right aligned"><a href="/c/{{ $user.clan.id }}?mode=0">[{{ $user.clan.tag }}]</a></td>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
@ -73,13 +73,13 @@
|
||||||
</div>
|
</div>
|
||||||
{{else if $donor}}
|
{{else if $donor}}
|
||||||
<div class="dev">
|
<div class="dev">
|
||||||
{{ if $user.clan}}
|
{{ if $user.clan.tag}}
|
||||||
<td class="right aligned"><a href="/c/{{ $user.clan.id }}?mode=0">[{{ $user.clan.tag }}]</a></td>
|
<td class="right aligned"><a href="/c/{{ $user.clan.id }}?mode=0">[{{ $user.clan.tag }}]</a></td>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ .username }}
|
{{ .username }}
|
||||||
</div>
|
</div>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ if $user.clan}}
|
{{ if $user.clan.tag}}
|
||||||
<td class="right aligned"><a href="/c/{{ $user.clan.id }}?mode=0">[{{ $user.clan.tag }} ]</a></td>
|
<td class="right aligned"><a href="/c/{{ $user.clan.id }}?mode=0">[{{ $user.clan.tag }} ]</a></td>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ .username }}
|
{{ .username }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user