This commit is contained in:
Alicia 2019-02-24 14:51:40 +00:00
parent bf33128909
commit acb494c730
4 changed files with 11 additions and 9 deletions

View File

@ -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)

View File

@ -66,7 +66,7 @@
{{ if $super }}
<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>
{{ end }}
@ -74,13 +74,13 @@
</div>
{{else if $donor}}
<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>
{{ end }}
{{ .username }}
</div>
{{ 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>
{{ end }}
{{ .username }}

View File

@ -65,7 +65,7 @@
{{ $user := . }}
{{ if $super }}
<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>
{{ end }}
@ -73,13 +73,13 @@
</div>
{{else if $donor}}
<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>
{{ end }}
{{ .username }}
</div>
{{ 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>
{{ end }}
{{ .username }}

View File

@ -65,7 +65,7 @@
{{ $user := . }}
{{ if $super }}
<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>
{{ end }}
@ -73,13 +73,13 @@
</div>
{{else if $donor}}
<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>
{{ end }}
{{ .username }}
</div>
{{ 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>
{{ end }}
{{ .username }}