{% extends 'base.html.twig' %} {% import "doctor/actions.html.twig" as actions %} {% block page_title %}{{ 'menu.doctor'|trans }}{% endblock %} {% block page_subtitle %}Environment: {{ environment }} – Version: {{ constant('App\\Constants::VERSION') }} {{ constant('App\\Constants::STATUS') }}{% endblock %} {% block page_actions %}{{ actions.doctor('index') }}{% endblock %} {% block main %} {% set permissionOpts = {collapsed: true, boxtype: 'success'} %} {% for name, value in directories %} {% if value is same as (false) %} {% set permissionOpts = {boxtype: 'danger'} %} {% endif %} {% endfor %} {% embed '@AdminLTE/Widgets/box-widget.html.twig' with permissionOpts %} {% block box_title %}File permissions{% endblock %} {% block box_body %}

If you see a warning icon in the list below, you should talk to your administrator. The path is either not readable or not writable and Kimai might not work as expected.

{% for name, value in directories %} {% endfor %}
{{ name }} {% if value is same as (false) %} {% else %} {% endif %}
{% endblock %} {% endembed %} {% set extensionOpts = {collapsed: true, boxtype: 'success'} %} {% for name, value in extensions %} {% if value is same as (false) %} {% set extensionOpts = {boxtype: 'danger'} %} {% endif %} {% endfor %} {% embed '@AdminLTE/Widgets/box-widget.html.twig' with extensionOpts %} {% block box_title %}Required PHP extensions{% endblock %} {% block box_body %}

If you see a warning icon in the list below, you should talk to your administrator. There is a missing PHP extension and Kimai might not work as expected.

{% for name, value in extensions %} {% endfor %}
{{ name }} {% if value is same as (false) %} {% else %} {% endif %}
{% endblock %} {% endembed %} {% set logOpts = {collapsed: true} %} {% if logSize > 52428800 %} {% set logOpts = {boxtype: 'danger'} %} {% endif %} {% embed '@AdminLTE/Widgets/box-widget.html.twig' with logOpts %} {% block box_title %}Logfile (max. {{ logLines }} last lines){% endblock %} {% block box_tools %} {% if log_delete %} {% endif %} {% endblock %} {% block box_body %} {% if logSize > 52428800 %}

Your logfile is larger than 50 MB, consider deleting it (it will be re-created automatically).

{% endif %}
{% for logLine in logs|reverse -%}
                {%- set logLineClass = '' -%}
                {%- if '.CRITICAL' in logLine -%}
                    {%- set logLineClass = 'text-danger text-bold' -%}
                {%- elseif '.WARNING' in logLine -%}
                    {%- set logLineClass = 'text-warning text-bold' -%}
                {%- elseif '.ERROR' in logLine -%}
                    {%- set logLineClass = 'text-warning text-bold' -%}
                {%- elseif '.DEBUG' in logLine -%}
                    {%- set logLineClass = 'text-muted' -%}
                {%- endif -%}
                {{- logLine -}}
            {%- endfor %}
{% endblock %} {% endembed %} {% embed '@AdminLTE/Widgets/box-widget.html.twig' with {collapsed: true} %} {% block box_title %}Composer packages{% endblock %} {% block box_body_class %}no-padding{% endblock %} {% block box_body %} {% for name, value in composer %} {% endfor %}
{{ name }} {{ value }}
{% endblock %} {% endembed %} {% embed '@AdminLTE/Widgets/box-widget.html.twig' with {collapsed: true} %} {% block box_title %}PHP{% endblock %} {% block box_body_class %}no-padding{% endblock %} {% block box_body %} {% for name, value in settings %} {% endfor %}
Version {{ constant('PHP_VERSION') }}
Modules {{ modules|join(', ') }}
{{ name }} {% if value is empty %} unknown {% else %} {{ value }} {% endif %}
{% endblock %} {% endembed %} {% embed '@AdminLTE/Widgets/box-widget.html.twig' with {collapsed: true} %} {% block box_title %}Server{% endblock %} {% block box_body_class %}no-padding{% endblock %} {% block box_body %} {% for name, value in info %} {% endfor %}
{{ name }} {{ value|raw }}
{% endblock %} {% endembed %} {% endblock %}