2018-10-30 23:59:59 +01:00
|
|
|
{% set not_installed = app not in conf['apps'] %}
|
|
|
|
{% if not status %}
|
|
|
|
{% if not_installed: %}
|
|
|
|
{% set status = 'Není nainstalována' %}
|
|
|
|
{% set actions = '<a href="#" class="app-install">Instalovat</a>' %}
|
|
|
|
{% elif is_service_started(app): %}
|
|
|
|
{% set status = '<span class="info">Spuštěna</span>' %}
|
|
|
|
{% set actions = '<a href="#" class="app-stop">Zastavit</a>' %}
|
|
|
|
{% else: %}
|
|
|
|
{% set status = '<span class="error">Zastavena</span>' %}
|
|
|
|
{% set actions = '<a href="#" class="app-start">Spustit</a>, <a href="#" class="app-uninstall">Odinstalovat</a>' %}
|
2018-10-28 18:20:27 +01:00
|
|
|
{% endif %}
|
2018-10-30 23:59:59 +01:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<td>{{ app_title }}</td>
|
|
|
|
<td class="center"><input type="checkbox" class="app-visible"{% if not_installed %} disabled{% elif conf['apps'][app]['visible'] %} checked{% endif %}></td>
|
|
|
|
<td class="center"><input type="checkbox" class="app-autostart"{% if not_installed %} disabled{% elif is_service_autostarted(app) %} checked{% endif %}></td>
|
2018-10-31 11:27:15 +01:00
|
|
|
{% if is_error %}
|
|
|
|
<td colspan="2">{{ status|safe }}</td>
|
|
|
|
{% else %}
|
2018-10-30 23:59:59 +01:00
|
|
|
<td>{{ status|safe }}</td>
|
|
|
|
<td>{{ actions|safe }}</td>
|
2018-10-31 11:27:15 +01:00
|
|
|
{% endif %}
|