filter enabled items

This commit is contained in:
deflax 2017-06-26 17:39:31 +03:00
parent 500b12dd28
commit f2c6d62556

View file

@ -28,8 +28,8 @@
</thead>
<tbody>
{% for deploy in deployments %}
<tr>
<td>{% if deploy.enabled == True %}<font color="green">{% else %}<font color="red">{% endif %}{{ deploy.machine_id }}</td>
{% if deploy.enabled == True %}<tr class="error">{% else %}<tr>{% endif %}
<td>{{ deploy.machine_id }}</td>
<td>{{ deploy.machine_alias }}</font></td>
<td>{{ deploy.machine_cpu }} c.</td>
<td>{{ deploy.machine_mem }} MB</td>
@ -61,7 +61,7 @@
</thead>
<tbody>
{% for service in services %}
<tr>
{% if service.enabled == True %}<tr class="error">{% else %}<tr>{% endif %}
<td>{{ service.category }}</td>
<td>{{ service.description }}</td>
<td>{{ service.period }}</td>
@ -91,7 +91,7 @@
</thead>
<tbody>
{% for domain in domains %}
<tr>
{% if domain.enabled == True %}<tr class="error">{% else %}<tr>{% endif %}
<td><b><a href="http://{{ domain.fqdn }}">{{ domain.fqdn }}</a></b></td>
<td>{{ domain.date_expire }}</td>
<td><a href="{{ url_for('admin.dashboard', user_pid=domain.user_id) }}">{{ domain.owner.email }}</a></td>
@ -119,6 +119,7 @@
<tbody>
{% for address in addresses %}
<tr>
{% if address.enabled == True %}<tr class="error">{% else %}<tr>{% endif %}
<td>{{ address.ip }}</td>
<td>{{ address.mac }}</td>
<td>{{ address.rdns }}</td>