fix formatting
This commit is contained in:
parent
697cb30f0f
commit
17125a0334
|
@ -3,7 +3,7 @@ NoCompile=true
|
||||||
*/}}
|
*/}}
|
||||||
{{ define "clanGroup" }}
|
{{ define "clanGroup" }}
|
||||||
{{ with . }}
|
{{ with . }}
|
||||||
<div class="ui one column center aligned stackable grid">
|
<div class="ui one column center aligned stackable grid">
|
||||||
{{ $teamJSON := teamJSON }}
|
{{ $teamJSON := teamJSON }}
|
||||||
{{ range .members }}
|
{{ range .members }}
|
||||||
{{/* ignore fokabot */}}
|
{{/* ignore fokabot */}}
|
||||||
|
@ -54,6 +54,6 @@ NoCompile=true
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -2,8 +2,8 @@
|
||||||
NoCompile=true
|
NoCompile=true
|
||||||
*/}}
|
*/}}
|
||||||
{{ define "clanMembers" }}
|
{{ define "clanMembers" }}
|
||||||
{{ with . }}
|
{ with . }}
|
||||||
<div class="ui three column center aligned stackable grid">
|
<div class="ui three column center aligned stackable grid">
|
||||||
{{ $teamJSON := teamJSON }}
|
{{ $teamJSON := teamJSON }}
|
||||||
{{ range .members }}
|
{{ range .members }}
|
||||||
{{/* ignore fokabot */}}
|
{{/* ignore fokabot */}}
|
||||||
|
@ -36,6 +36,6 @@ NoCompile=true
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -3,8 +3,8 @@ Handler=/clans
|
||||||
TitleBar=Clans
|
TitleBar=Clans
|
||||||
KyutGrill=leaderboard2.jpg
|
KyutGrill=leaderboard2.jpg
|
||||||
*/}}
|
*/}}
|
||||||
{{ define "tpl" }}
|
{{ define "tpl" }}
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
{{ $favMode := _or (atoi (.Gin.Query "mode")) }}
|
{{ $favMode := _or (atoi (.Gin.Query "mode")) }}
|
||||||
<script>
|
<script>
|
||||||
var favouriteMode = {{ $favMode }};
|
var favouriteMode = {{ $favMode }};
|
||||||
|
@ -40,5 +40,5 @@ KyutGrill=leaderboard2.jpg
|
||||||
{{end}}
|
{{end}}
|
||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
|
@ -2,7 +2,7 @@
|
||||||
Include=clan_members.html
|
Include=clan_members.html
|
||||||
*/}}
|
*/}}
|
||||||
{{ define "tpl" }}
|
{{ define "tpl" }}
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
|
|
||||||
{{ if .ClanID }}
|
{{ if .ClanID }}
|
||||||
{{ $gqm := .Gin.Query "mode" }}
|
{{ $gqm := .Gin.Query "mode" }}
|
||||||
|
@ -40,7 +40,8 @@ Include=clan_members.html
|
||||||
|
|
||||||
{{ $global.T "%s" (.description | htmlescaper) | html }}
|
{{ $global.T "%s" (.description | htmlescaper) | html }}
|
||||||
{{ end }}
|
{{ 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>
|
<tbody>
|
||||||
{{ with (.Get "clans/stats?id=%d&m=%d" .ClanID (.Gin.Query "mode"))}}
|
{{ with (.Get "clans/stats?id=%d&m=%d" .ClanID (.Gin.Query "mode"))}}
|
||||||
<td></td>
|
<td></td>
|
||||||
|
@ -90,21 +91,27 @@ Include=clan_members.html
|
||||||
<form id="register-form" class="ui form" method="post" action="/c/{{ .ClanID }}">
|
<form id="register-form" class="ui form" method="post" action="/c/{{ .ClanID }}">
|
||||||
{{ ieForm .Gin }}
|
{{ ieForm .Gin }}
|
||||||
</form>
|
</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 }}
|
{{ else }}
|
||||||
<form id="register-form" class="ui form" method="post" action="/c/{{ .ClanID }}">
|
<form id="register-form" class="ui form" method="post" action="/c/{{ .ClanID }}">
|
||||||
{{ ieForm .Gin }}
|
{{ ieForm .Gin }}
|
||||||
</form>
|
</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 }}
|
{{ end }}
|
||||||
{{ else }}
|
{{ 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}}
|
{{end}}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ else }}
|
{{ 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 }}
|
{{ end }}
|
||||||
<h1 class="ui heading">{{ .T "Clan Owner" }}</h1>
|
<h1 class="ui heading">{{ .T "Clan Owner" }}</h1>
|
||||||
|
@ -124,5 +131,5 @@ Include=clan_members.html
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
Loading…
Reference in New Issue
Block a user