2021-02-15 06:10:00 +00:00
|
|
|
|
{% for s in servers %}
|
|
|
|
|
<tr id="server-{{s.0}}" class="{{ loop.cycle('odd', 'even') }} {% if adding %}newserver{% endif %}">
|
|
|
|
|
<td class="padding10 first-collumn"><span id="server-name-{{s.0}}">{{s.1}}</span></td>
|
2021-02-16 05:30:48 +00:00
|
|
|
|
<td style="width: 10%">
|
2021-02-15 06:10:00 +00:00
|
|
|
|
{% for p in providers %}
|
|
|
|
|
{% if p.0|int() == s.2|int() %}
|
|
|
|
|
<span>{{ p.1 }}</span>
|
|
|
|
|
<span id="server-provider-{{s.0}}" style="display: none;">{{p.0}}</span>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</td>
|
|
|
|
|
{% if role == 1 %}
|
2021-02-17 03:36:21 +00:00
|
|
|
|
<td style="width: 5%">
|
2021-02-15 06:10:00 +00:00
|
|
|
|
{% for g in groups %}
|
|
|
|
|
{% if adding %}
|
|
|
|
|
{% if user_group|int() == g.0|int() %}
|
|
|
|
|
{{ g.1 }}
|
|
|
|
|
<span id="server-group-{{s.0}}" style="display: none;">{{ g.0 }}</span>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% else %}
|
|
|
|
|
{% if s.4|int() == g.0|int() %}
|
|
|
|
|
{{ g.1 }}
|
|
|
|
|
<span id="server-group-{{s.0}}" style="display: none;">{{ g.0 }}</span>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</td>
|
|
|
|
|
{% else %}
|
|
|
|
|
<span id="server-group-{{s.0}}" style="display: none;">{{user_group}}</span>
|
|
|
|
|
{% endif %}
|
2021-02-16 05:30:48 +00:00
|
|
|
|
<td style="width: 10%">
|
2021-02-15 06:10:00 +00:00
|
|
|
|
{% if s.3 == 'do' %}
|
|
|
|
|
DigitalOcean
|
|
|
|
|
{% set onclickEditAction = 'editDoServer' %}
|
|
|
|
|
{% elif s.3 == 'aws' %}
|
|
|
|
|
AWS
|
|
|
|
|
{% set onclickEditAction = 'editAwsServer' %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
<span id="server-cloud-{{s.0}}" style="display: none;">{{s.3}}</span>
|
|
|
|
|
</td>
|
2021-02-17 03:36:21 +00:00
|
|
|
|
<td style="width: 5%">
|
2021-02-15 06:10:00 +00:00
|
|
|
|
{{s.8}}
|
|
|
|
|
</td>
|
2021-02-16 05:30:48 +00:00
|
|
|
|
<td style="width: 10%">
|
2021-02-15 06:10:00 +00:00
|
|
|
|
<span id="sever-os-{{s.0}}">{{s.9}}</span>
|
|
|
|
|
</td>
|
2021-02-17 03:36:21 +00:00
|
|
|
|
<td style="width: 15%">
|
2021-02-15 06:10:00 +00:00
|
|
|
|
<span id="sever-ip-{{s.0}}">{{s.10}}</span>
|
|
|
|
|
</td>
|
2021-02-16 05:30:48 +00:00
|
|
|
|
<td style="width: 10%">
|
2021-02-15 06:10:00 +00:00
|
|
|
|
<span id="sever-size-{{s.0}}">{{s.5}}</span>
|
|
|
|
|
</td>
|
2021-02-16 05:30:48 +00:00
|
|
|
|
<td style="width: 5%">
|
2021-02-15 06:10:00 +00:00
|
|
|
|
{% if s.6 == 'Created ' %}
|
|
|
|
|
{% set style='сolor: green;' %}
|
|
|
|
|
{% elif s.6 == 'Error ' %}
|
|
|
|
|
{% set style='color: red;cursor: help;' %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
<span id="sever-status-{{s.0}}" title="Last error: {{s.11}}" style="font-weight: bold;{{style}}">{{s.6}}</span>
|
|
|
|
|
</td>
|
2021-02-16 05:30:48 +00:00
|
|
|
|
<td style="width: 100%">
|
2021-02-15 06:10:00 +00:00
|
|
|
|
{{s.7}}
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<a class="edit" onclick="{{onclickEditAction}}({{s.0}})" title="Edit server {{s.1}}" style="cursor: pointer;"></a>
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
|
|
|
|
<a class="delete" onclick="confirmDeleteProvisionedServer({{s.0}})" title="Delete server {{s.1}}" style="cursor: pointer;"></a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|