This repository was archived by the owner on Jul 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.hbs
More file actions
43 lines (39 loc) · 1.25 KB
/
start.hbs
File metadata and controls
43 lines (39 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<div class="panel {{type}}">
<div class="header">
{{#if closeable}}<i class="close fa fa-times fa-2x" onClick="UIPanels.hidePanel()"></i>{{/if}}
{{#if icon}}<i class="fa fa-{{ui_icon icon}} fa-3x"></i>{{/if}}
{{#if image}}<img src="/images/{{image}}" alt="Panel image" />{{/if}}
{{#if logo}}<img id="logo" src="/images/panel-logo.png" alt="Standing Fleet" />{{/if}}
{{#if title}}<div class="text title">{{{title}}}</div>{{/if}}
</div>
<!-- <a class="button submit-create" onclick="UIPanels.showCreatePanel()">Create Fleet</a> -->
<h2>Current Fleets</h2>
<table>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Formed</th>
</tr>
</thead>
<tbody>
{{#each fleets}}
<tr>
<td>
<a href="/join/{{key}}" title="{{key}}">
{{#if name}}{{name}}{{else}}{{key}}{{/if}}
</a>
</td>
<td>{{description}}</td>
<td>
{{#if has_password}}<i class="fa fa-lock"></i>{{/if}}
{{format_ts ts}}</td>
</tr>
{{/each}}
</tbody>
</table>
<a target="_blank" class="button submit-leave" onclick="leaveFleet()">Leave Fleet</a>
{{#if footer}}
<div class="text footer">{{{footer}}}</div>
{{/if}}
</div>