fix formatting

This commit is contained in:
Alicia 2019-02-23 21:27:22 +00:00
parent 697cb30f0f
commit 17125a0334
4 changed files with 250 additions and 243 deletions

View File

@ -3,7 +3,7 @@ NoCompile=true
*/}}
{{ define "clanGroup" }}
{{ with . }}
<div class="ui one column center aligned stackable grid">
<div class="ui one column center aligned stackable grid">
{{ $teamJSON := teamJSON }}
{{ range .members }}
{{/* ignore fokabot */}}
@ -54,6 +54,6 @@ NoCompile=true
</div>
{{ end }}
{{ end }}
</div>
{{ end }}
{{ end }}
</div>
{{ end }}
{{ end }}

View File

@ -2,8 +2,8 @@
NoCompile=true
*/}}
{{ define "clanMembers" }}
{{ with . }}
<div class="ui three column center aligned stackable grid">
{ with . }}
<div class="ui three column center aligned stackable grid">
{{ $teamJSON := teamJSON }}
{{ range .members }}
{{/* ignore fokabot */}}
@ -36,6 +36,6 @@ NoCompile=true
</div>
{{ end }}
{{ end }}
</div>
{{ end }}
{{ end }}
</div>
{{ end }}
{{ end }}

View File

@ -3,8 +3,8 @@ Handler=/clans
TitleBar=Clans
KyutGrill=leaderboard2.jpg
*/}}
{{ define "tpl" }}
<div class="ui container">
{{ define "tpl" }}
<div class="ui container">
{{ $favMode := _or (atoi (.Gin.Query "mode")) }}
<script>
var favouriteMode = {{ $favMode }};
@ -40,5 +40,5 @@ KyutGrill=leaderboard2.jpg
{{end}}
</thead>
</table>
</div>
{{ end }}
</div>
{{ end }}

View File

@ -2,7 +2,7 @@
Include=clan_members.html
*/}}
{{ define "tpl" }}
<div class="ui container">
<div class="ui container">
{{ if .ClanID }}
{{ $gqm := .Gin.Query "mode" }}
@ -40,7 +40,8 @@ Include=clan_members.html
{{ $global.T "%s" (.description | htmlescaper) | html }}
{{ end }}
<br><br><table class="ui very basic two column compact table nopad">
<br><br>
<table class="ui very basic two column compact table nopad">
<tbody>
{{ with (.Get "clans/stats?id=%d&m=%d" .ClanID (.Gin.Query "mode"))}}
<td></td>
@ -90,21 +91,27 @@ Include=clan_members.html
<form id="register-form" class="ui form" method="post" action="/c/{{ .ClanID }}">
{{ ieForm .Gin }}
</form>
<div class="ui one item menu"><button tabindex="1" class="ui primary button" style="background-color:rgba(255,0,0,.5)" type="submit" form="register-form">{{ .T "Disband Clan" }}</button></div>
<div class="ui one item menu"><button tabindex="1" class="ui primary button"
style="background-color:rgba(255,0,0,.5)" type="submit"
form="register-form">{{ .T "Disband Clan" }}</button></div>
{{ else }}
<form id="register-form" class="ui form" method="post" action="/c/{{ .ClanID }}">
{{ ieForm .Gin }}
</form>
<div class="ui one item menu"><button tabindex="1" class="ui primary button" style="background-color:rgba(255,0,0,.3)" type="submit" form="register-form">{{ .T "Leave Clan" }}</button></div>
<div class="ui one item menu"><button tabindex="1" class="ui primary button"
style="background-color:rgba(255,0,0,.3)" type="submit"
form="register-form">{{ .T "Leave Clan" }}</button></div>
{{ end }}
{{ else }}
<div class="ui one item menu" id="join-menu"><a class="item" style="background-color:rgba(255,0,0,.3)">Already joined a clan</a></div>
<div class="ui one item menu" id="join-menu"><a class="item"
style="background-color:rgba(255,0,0,.3)">Already joined a clan</a></div>
{{end}}
{{ else }}
{{ end }}
{{ else }}
<div class="ui one item menu" id="join-menu"><a class="item" href="/login" style="background-color:rgba(0,128,255,.3)">Please login to join a clan</a></div>
<div class="ui one item menu" id="join-menu"><a class="item" href="/login"
style="background-color:rgba(0,128,255,.3)">Please login to join a clan</a></div>
{{ end }}
<h1 class="ui heading">{{ .T "Clan Owner" }}</h1>
@ -124,5 +131,5 @@ Include=clan_members.html
</div>
</div>
{{ end }}
</div>
{{ end }}
</div>
{{ end }}