diff --git a/main.go b/main.go index fa00147..f6aabfd 100644 --- a/main.go +++ b/main.go @@ -309,6 +309,8 @@ func generateEngine() *gin.Engine { r.POST("/settings/2fa/totp", totpSetup) r.GET("/settings/discord/finish", discordFinish) 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/delete", deleteAPIToken) diff --git a/templates/profile.html b/templates/profile.html index cff385c..8d230ce 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -66,7 +66,7 @@ {{ if $super }}
- {{ if $user.clan}} + {{ if $user.clan.tag}} [{{ $user.clan.tag }}] {{ end }} @@ -74,13 +74,13 @@
{{else if $donor}}
- {{ if $user.clan}} + {{ if $user.clan.tag}} [{{ $user.clan.tag }}] {{ end }} {{ .username }}
{{ else }} - {{ if $user.clan}} + {{ if $user.clan.tag}} [{{ $user.clan.tag }} ] {{ end }} {{ .username }} diff --git a/templates/profile_auto.html b/templates/profile_auto.html index 16a229f..8e2b72a 100644 --- a/templates/profile_auto.html +++ b/templates/profile_auto.html @@ -65,7 +65,7 @@ {{ $user := . }} {{ if $super }}
- {{ if $user.clan}} + {{ if $user.clan.tag }} [{{ $user.clan.tag }}] {{ end }} @@ -73,13 +73,13 @@
{{else if $donor}}
- {{ if $user.clan}} + {{ if $user.clan.tag}} [{{ $user.clan.tag }}] {{ end }} {{ .username }}
{{ else }} - {{ if $user.clan}} + {{ if $user.clan.tag}} [{{ $user.clan.tag }} ] {{ end }} {{ .username }} diff --git a/templates/profile_relax.html b/templates/profile_relax.html index ce3502e..245e760 100644 --- a/templates/profile_relax.html +++ b/templates/profile_relax.html @@ -65,7 +65,7 @@ {{ $user := . }} {{ if $super }}
- {{ if $user.clan}} + {{ if $user.clan.tag}} [{{ $user.clan.tag }}] {{ end }} @@ -73,13 +73,13 @@
{{else if $donor}}
- {{ if $user.clan}} + {{ if $user.clan.tag}} [{{ $user.clan.tag }}] {{ end }} {{ .username }}
{{ else }} - {{ if $user.clan}} + {{ if $user.clan.tag}} [{{ $user.clan.tag }} ] {{ end }} {{ .username }}