revert name change

This commit is contained in:
Alicia 2019-02-23 21:53:36 +00:00
parent 9f8f86513a
commit 6f0060a56f
2 changed files with 123 additions and 129 deletions

View File

@ -1,7 +1,7 @@
{{/*###
NoCompile=true
*/}}
{{ define "clan_members" }}
{{ define "clanMembers" }}
{ with . }}
<div class="ui three column center aligned stackable grid">
{{ $teamJSON := teamJSON }}

View File

@ -1,8 +1,9 @@
{{/*###
Include=clanmembers.html
Include=clan_members.html
*/}}
{{ define "tpl" }}
<div class="ui container">
{{ if .ClanID }}
{{ $gqm := .Gin.Query "mode" }}
{{ $global := . }}
@ -39,8 +40,7 @@ Include=clanmembers.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,34 +90,28 @@ Include=clanmembers.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>
<p>
{{ .T "The leader of the clan." }}<br>
</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>
@ -126,7 +120,7 @@ Include=clanmembers.html
<p>
{{ .T "The members of the clan." }}<br>
</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>
{{ end }}