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

View File

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

View File

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

View File

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