2021-02-20 07:47:33 +00:00
{% for s in services %}
< tr class = "{{ loop.cycle('odd', 'even') }}" id = "{{s.0}}" >
< td class = "padding10 first-collumn" >
2022-05-11 08:39:49 +00:00
{% if s.1.0 == 'active' or s.1.0 == 'RUNNING' %}
2021-02-20 07:47:33 +00:00
< span title = "{{s.0}} is started" > < span class = "serverUp server-status" > < / span > < / span >
{% else %}
2022-05-11 08:39:49 +00:00
{% if (s.1.0 == 'inactive' or s.1.0 == 'failed' or s.1.0 == 'activating' or s.1.0 == 'STOPPED') and 'is not installed' not in s.3 %}
2021-08-21 18:21:22 +00:00
< span title = "{{s.0}} is stopped" > < span class = "serverDown server-status" > < / span > < / span >
2021-02-20 07:47:33 +00:00
{% else %}
< span title = "{{s.0}} is not installed" > < span class = "serverNone server-status" > < / span > < / span >
{% endif %}
{% endif %}
2022-03-15 09:51:03 +00:00
{{s.0[0]|upper}}{{s.0[1:]}}
2021-02-20 07:47:33 +00:00
< / td >
< td class = "padding10 first-collumn" >
2022-04-23 17:40:27 +00:00
{% if 'is not installed' in s.3 %}
< a href = "https://roxy-wi.org/services.py?service={{s.0.split('-')[2]}}#installation" title = "{{s.0.split('-')[2]}} installation" target = "_blank" class = "link" > Read about installation< / a >
{% else %}
2021-02-20 07:47:33 +00:00
< a id = "start-{{ s.0 }}" class = "start" title = "Start and enable {{s.0}} service" >
< span class = "service-start" onclick = "confirmAjaxServiceAction('start', '{{s.0}}')" > < / span >
< / a >
< a id = "restart-{{ s.2 }}" class = "restart" title = "Restart {{s.0}} service" >
< span class = "service-reload service-restart" onclick = "confirmAjaxServiceAction('restart', '{{s.0}}')" > < / span >
< / a >
< a id = "stop-{{ s.0 }}" class = "stop" title = "Stop and disable {{s.0}} service" >
< span class = "service-stop" onclick = "confirmAjaxServiceAction('stop', '{{s.0}}')" > < / span >
< / a >
2022-04-23 17:40:27 +00:00
{% endif %}
2021-02-20 07:47:33 +00:00
< / td >
2021-06-18 07:25:15 +00:00
< td >
2022-04-23 17:40:27 +00:00
{% if 'is not installed' not in s.3 %}
2021-06-18 07:25:15 +00:00
{{ s.3 }}
{% endif %}
< / td >
2021-02-20 07:47:33 +00:00
< td >
{{ s.2 }}
< / td >
2021-08-02 08:19:22 +00:00
< td > < / td >
2021-02-20 07:47:33 +00:00
< / tr >
{% endfor %}