Brian Buller
c2959b3974
Added Team Self-Management pages (Site must not be 'voting' mode) Process screenshots on upload, create thumbnail Change inline screenshots to thumbnails (screenshots can get big)
33 lines
1.1 KiB
HTML
33 lines
1.1 KiB
HTML
<div class="bottom-space center">
|
|
<a id="btnAddTeam" class="pure-button pure-button-success" href="/admin/teams/new"><i class="fa fa-plus"></i> Add Team</a>
|
|
</div>
|
|
{{ if not .TemplateData.Teams }}
|
|
<div>No teams have been created</div>
|
|
{{ else }}
|
|
<table id="teams-table" class="sortable pure-table pure-table-bordered center">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Management Link</th>
|
|
<th>Members</th>
|
|
<th>Game</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{ range $i, $v := .TemplateData.Teams }}
|
|
<tr>
|
|
<td>{{ $v.Name }}</td>
|
|
<td><a href="/team/{{ $v.UUID }}">{{ $v.UUID }}</a></td>
|
|
<td>{{ len $v.Members }}</td>
|
|
<td>{{ $v.Game.Name }}</td>
|
|
<td>
|
|
<a href="/admin/teams/{{ $v.UUID }}/edit" class="pure-button pure-button-plain"><i class="fa fa-pencil"></i></a>
|
|
<a href="/admin/teams/{{ $v.UUID }}/delete" class="pure-button pure-button-plain"><i class="fa fa-trash"></i></a>
|
|
</td>
|
|
</tr>
|
|
{{ end }}
|
|
</tbody>
|
|
</table>
|
|
{{ end }}
|