+ {{ $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 "" }}
+
+
+
+
+
+
+ Invite
+
+
+ {{ with .Get "clans/getinvite?id=%d" .Context.User.ID }}
+
+ {{ end }}
+
+
+
+ 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 }}
+