{{/*### Handler=/settings/clansettings TitleBar=Clan Settings Include=menu.html */}} {{ define "tpl" }}
{{ template "settingsSidebar" . }}
{{ $d := qb "SELECT user, clan, perms FROM user_clans WHERE user = ? AND perms = 8 LIMIT 1" .Context.User.ID }} {{ $g := or $d.clan.Int -1 }} {{ if $d }} Clan Settings

{{ $o := (.Get "clans/isclan?uid=%d" .Context.User.ID).clan.clan }} {{ $c := qb "SELECT * FROM clans WHERE id = ? LIMIT 1" $o }} {{ $tag := or $c.tag.String "" }} {{ $desc := or $c.description.String "" }} {{ $icon := or $c.icon.String "" }} {{ $bg := or $c.background.String "" }}
{{ if has .Context.User.Privileges 8388612 }}
{{ end }} {{ ieForm .Gin }}


Invite


{{ ieForm .Gin }}

Members {{ $g }}
{{ range (.Get "clans/members?id=%d&r=%d" $g 1).members }}
{{ end }} {{ else }} You haven't joined a clan yet, or you aren't the owner of your current one. {{ end }}
{{ end }}