bootstrap5_admin-1.0.1/templates/admin/status-report-general-info.html.twig

templates/admin/status-report-general-info.html.twig
{#
/**
 * @file
 * Theme override for the status report general info.
 *
 * Available variables:
 * - drupal: The status of Drupal installation:
 *   - value: The current status of Drupal installation.
 *   - description: The description for current status of Drupal installation.
 * - cron: The status of cron:
 *   - value: The current status of cron.
 *   - description: The description for current status of cron.
 *   - cron.run_cron: An array to render a button for running cron.
 * - database_system: The status of database system:
 *   - value: The current status of database system.
 *   - description: The description for current status of cron.
 * - database_system_version: The info about current database version:
 *   - value: The current version of database.
 *   - description: The description for current version of database.
 * - php: The current version of PHP:
 *   - value: The status of currently installed PHP version.
 *   - description: The description for current installed PHP version.
 * - php_memory_limit: The info about current PHP memory limit:
 *   - value: The status of currently set PHP memory limit.
 *   - description: The description for currently set PHP memory limit.
 * - webserver: The info about currently installed web server:
 *   - value: The status of currently installed web server.
 *   - description: The description for the status of currently installed web
 *     server.
 */
#}
<div class="system-status-general-info">
  <h2 class="system-status-general-info__header">{{ 'General System Information'|t }}</h2>
  <div class="system-status-general-info__items row row-cols-1 row-cols-md-3 g-2">
    <div class="col">
      <div class="system-status-general-info__item card">
        <div class="system-status-general-info__item-details card-body">
          <h3 class="system-status-general-info__item-title card-title"><i class="bi bi-clock-history"></i> {{ 'Last Cron Run'|t }}</h3>
          {{ cron.value }}
          {% if cron.run_cron %}
            <div class="system-status-general-info__run-cron">{{ cron.run_cron }}</div>
          {% endif %}
          {% if cron.description %}
            <div class="system-status-general-info__description card-text"><i class="bi bi-signpost-split"></i> {{ cron.description }}</div>
          {% endif %}
        </div>
      </div>
    </div>
    <div class="col">
      <div class="system-status-general-info__item card">
        <div class="system-status-general-info__item-details card-body">
          <h3 class="system-status-general-info__item-title card-title"><i class="bi bi-filetype-php"></i> {{ 'PHP'|t }}</h3>
          <h4 class="system-status-general-info__sub-item-title card-title"><i class="bi bi-git"></i> {{ 'Version'|t }}: {{ php.value }}</h4>
          {% if php.description %}
            <div class="description card-text">{{ php.description }}</div>
          {% endif %}

          <h4 class="system-status-general-info__sub-item-title card-title"><i class="bi bi-memory"></i> {{ 'Memory limit'|t }} : {{ php_memory_limit.value }}</h4>
          {% if php_memory_limit.description %}
            <div class="description">{{ php_memory_limit.description }}</div>
          {% endif %}
        </div>
      </div>
    </div>
    <div class="col">
      <div class="system-status-general-info__item card">
        <div class="system-status-general-info__item-details card-body">
          <h3 class="system-status-general-info__item-title card-title"><i class="bi bi-server"></i> {{ 'Database'|t }}</h3>
          <h4 class="system-status-general-info__sub-item-title card-title"><i class="bi bi-git"></i>  {{ 'Version'|t }}: {{ database_system_version.value }}</h4>
          {% if database_system_version.description %}
            <div class="description card-text">{{ database_system_version.description }}</div>
          {% endif %}

          <h4 class="system-status-general-info__sub-item-title card-title">{{ 'System'|t }}</h4>{{ database_system.value }}
          {% if database_system.description %}
            <div class="description card-text">{{ database_system.description }}</div>
          {% endif %}
        </div>
      </div>
    </div>
    <div class="col">
      <div class="system-status-general-info__item card">
        <div class="system-status-general-info__item-details card-body">
          <h3 class="system-status-general-info__item-title card-title"><i class="bi bi-droplet"></i> {{ 'Drupal Version'|t }}</h3>
          {{ drupal.value }}
          {% if drupal.description %}
            <div class="description card-text">{{ drupal.description }}</div>
          {% endif %}
        </div>
      </div>
    </div>
    <div class="col">
      <div class="system-status-general-info__item card">
        <div class="system-status-general-info__item-details card-body">
          <h3 class="system-status-general-info__item-title"><i class="bi bi-hdd-rack"></i> {{ 'Web Server'|t }}</h3>
          {{ webserver.value }}
          {% if webserver.description %}
            <div class="description card-text">{{ webserver.description }}</div>
          {% endif %}
        </div>
      </div>
    </div>
  </div>
</div>

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc