revert name change
This commit is contained in:
parent
9f8f86513a
commit
6f0060a56f
|
@ -1,7 +1,7 @@
|
||||||
{{/*###
|
{{/*###
|
||||||
NoCompile=true
|
NoCompile=true
|
||||||
*/}}
|
*/}}
|
||||||
{{ define "clan_members" }}
|
{{ 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 }}
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
{{/*###
|
{{/*###
|
||||||
Include=clanmembers.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" }}
|
||||||
{{ $global := . }}
|
{{ $global := . }}
|
||||||
|
@ -39,8 +40,7 @@ Include=clanmembers.html
|
||||||
|
|
||||||
{{ $global.T "%s" (.description | htmlescaper) | html }}
|
{{ $global.T "%s" (.description | htmlescaper) | html }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<br><br>
|
<br><br><table class="ui very basic two column compact table nopad">
|
||||||
<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,34 +90,28 @@ Include=clanmembers.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"
|
<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>
|
||||||
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"
|
<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>
|
||||||
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"
|
<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>
|
||||||
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"
|
<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>
|
||||||
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>
|
||||||
<p>
|
<p>
|
||||||
{{ .T "The leader of the clan." }}<br>
|
{{ .T "The leader of the clan." }}<br>
|
||||||
</p>
|
</p>
|
||||||
{{ template "clan_members" (.Get "clans/members?id=%d&r=%d" .ClanID 8) }}
|
{{ template "clanMembers" (.Get "clans/members?id=%d&r=%d" .ClanID 8) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -126,7 +120,7 @@ Include=clanmembers.html
|
||||||
<p>
|
<p>
|
||||||
{{ .T "The members of the clan." }}<br>
|
{{ .T "The members of the clan." }}<br>
|
||||||
</p>
|
</p>
|
||||||
{{ template "clan_members" (.Get "clans/members?id=%d&r=%d" .ClanID 1) }}
|
{{ template "clanMembers" (.Get "clans/members?id=%d&r=%d" .ClanID 1) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user