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

@ -2,7 +2,7 @@
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 }}

View File

@ -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>