arma-server-web-admin/public/js/tpl/servers/list_item.html
2019-12-10 15:56:54 +01:00

41 lines
1.1 KiB
HTML

<td>
<% if (typeof(pid) != "undefined" && pid) { %>
<% if (state) { %>
<span class="label label-success">Online
(<%- (state.players) ? state.players.length : '?' %>/<%- state.maxplayers %>)
</span>
<% } else { %>
<span class="label label-info">Launching</span>
<% } %>
<% } else { %>
<span class="label label-default">Offline</span>
<% } %>
</td>
<td>
<% if (typeof(pid) != "undefined" && pid) { %>
<button type="button" class="btn btn-primary btn-xs stop pull-right">
<span class="glyphicon glyphicon-stop"></span> Stop
</button>
<% } else { %>
<button type="button" class="btn btn-primary btn-xs start pull-right">
<span class="glyphicon glyphicon-play"></span> Start
</button>
<% } %>
</td>
<td><%-port%></td>
<td style="width: 100%;">
<a href='#servers/<%-id%>'><%-title%></a>
</td>
<td>
<button type="button" class="btn btn-success btn-xs clone pull-right">
<span class="glyphicon glyphicon-plus-sign"></span> Clone
</button>
</td>
<td>
<button type="button" class="btn btn-danger btn-xs delete pull-right">
<span class="glyphicon glyphicon-trash"></span> Delete
</button>
</td>