{% extends 'base.html' %} {% block content %}
| Status | Service Name | Version | Port | Actions | |
|---|---|---|---|---|---|
|
{% if details.status == True %}
|
{{ service_display_name }} ({% if details.type == ("docker") %} {% elif details.type == ("system") %}{% endif %}{{ details.real_name }}) |
{% if details.version %}
{{ details.version }} | {% else %}{% endif %} | {% if details.port %} {% set ports = details.port %} {% if ports is string %} {{ ports }} {% elif ports is iterable and ports|length > 0 %} {% if ports|length > 1 %} {% set port_list = ports|join(', ') %} {{ port_list }} {% else %} {{ ports[0] }} {% endif %} {% else %} {% endif %} {% else %} {% endif %} | {% if details.status %} {% if details.real_name == 'admin' %} {% else %} {% endif %} {% else %} {% endif %} |
Make sure that file /etc/openpanel/openadmin/config/services.json has valid JSON.