sgd_dashboard-1.0.0-beta1/templates/sgd-benchmark-data.html.twig

templates/sgd-benchmark-data.html.twig
<h2>Website Server benchmarks</h2>

<p>
  Benchmarks for this site were last run on the {{ data.timestamp | format_date('custom', 'dS M Y \\a\\t H:m:s') }}
  with {{ data.iterations }} iterations of the benchmarks being run.
</p>
<p>
  Refreshing the site from the Site Guardian Dashboard does <strong>NOT</strong> refresh the benchmarks.
  To update the data you must visit the 'Server benchmarks' report on the target website and then refresh the site in the Site Guardian dashboard. 
</p>

{% if data.php %}

  <h2>PHP benchmarks</h2>

  {% for key, item in data.php %}
    <div class="system-status-report__row system-status-report__{{ key }}">
      <div class="system-status-report__status-title" role="button">
        {{ item.title }}
      </div>
      <div class="system-status-report__entry__value">
        {{ item.result }}
        <div class="description">{{ item.description | raw }}</div>
      </div>
    </div>
  {% endfor %}

{% endif %}

{% if data.db %}

  <h2>DB benchmarks</h2>

  {% for key, item in data.db %}
    <div class="system-status-report__row system-status-report__{{ key }}">
      <div class="system-status-report__status-title" role="button">
        {{ item.title }}
      </div>
      <div class="system-status-report__entry__value">
        {{ item.result }}
        <div class="description">{{ item.description | raw }}</div>
      </div>
    </div>
  {% endfor %}

{% else %}

  <h2>DB benchmarks</h2>

  <p>No database benchmarks are available. Check the target environment has the mysqli extension enabled.</p>

{% endif %}

{% if data.io %}

  <h2>IO benchmarks</h2>

  {% for key, item in data.io %}
    <div class="system-status-report__row system-status-report__{{ key }}">
      <div class="system-status-report__status-title" role="button">
        {{ item.title }}
      </div>
      <div class="system-status-report__entry__value">
        {{ item.result }}
        <div class="description">{{ item.description | raw }}</div>
      </div>
    </div>
  {% endfor %}

{% endif %}


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

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