From 6370e068798b6fb72c52bc535b13330c354557aa Mon Sep 17 00:00:00 2001 From: Alicia Date: Sun, 24 Feb 2019 14:45:21 +0000 Subject: [PATCH] a --- templates/profile.html | 4 +- templates/settings/clansettings.html | 86 ++++++++++++++++++++++++++++ 2 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 templates/settings/clansettings.html diff --git a/templates/profile.html b/templates/profile.html index 1358141..b21ffbb 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -63,7 +63,9 @@

{{ $user := . }} - [{{ $user.clan.tag }}] + {{ if $user.clan}} + {{ $user.clan.tag }} + {{ end }} {{ if $super }}
{{ .username }} diff --git a/templates/settings/clansettings.html b/templates/settings/clansettings.html new file mode 100644 index 0000000..9cba7a1 --- /dev/null +++ b/templates/settings/clansettings.html @@ -0,0 +1,86 @@ +{{/*### +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 }} \ No newline at end of file