Skip to content

Commit

Permalink
Remove condition
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker committed Feb 12, 2024
1 parent 23e1021 commit 1bfd5b5
Showing 1 changed file with 61 additions and 65 deletions.
126 changes: 61 additions & 65 deletions src/templates/_utilities/diagnostics/pages/page.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,76 +11,72 @@

{% block content %}
<h1>
{{ elementTypes|length ? 'Tracked Elements'|t('blitz') : 'No Tracked Elements'|t('blitz') }}
{{ 'Tracked Elements'|t('blitz') }}
</h1>
{% if elementTypes|length %}
<div class="elements">
<table class="data fullwidth">
<thead>
<div class="elements">
<table class="data fullwidth">
<thead>
<tr>
<th>
{{ 'Element Type'|t('blitz') }}
</th>
<th>
{{ 'Elements'|t('blitz') }}
</th>
</tr>
</thead>
<tbody>
{% for elementType in elementTypes %}
<tr>
<th>
{{ 'Element Type'|t('blitz') }}
</th>
<th>
{{ 'Elements'|t('blitz') }}
</th>
<td class="code">
<a href="{{ url('blitz/diagnostics/pages/element-type', {
pageId: page.id,
elementType: elementType.type
}) }}">
{{ elementType.type }}
</a>
</td>
<td>
{{ elementType.count|number }}
</td>
</tr>
</thead>
<tbody>
{% for elementType in elementTypes %}
<tr>
<td class="code">
<a href="{{ url('blitz/diagnostics/pages/element-type', {
pageId: page.id,
elementType: elementType.type
}) }}">
{{ elementType.type }}
</a>
</td>
<td>
{{ elementType.count|number }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<br>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
<br>
<h1>
{{ elementQueryTypes|length ? 'Tracked Element Queries'|t('blitz') : 'No Tracked Element Queries'|t('blitz') }}
{{ 'Tracked Element Queries'|t('blitz') }}
</h1>
{% if elementQueryTypes|length %}
<div class="elements">
<table class="data fullwidth">
<thead>
<div class="elements">
<table class="data fullwidth">
<thead>
<tr>
<th>
{{ 'Element Query Type'|t('blitz') }}
</th>
<th>
{{ 'Element Queries'|t('blitz') }}
</th>
</tr>
</thead>
<tbody>
{% for elementQueryType in elementQueryTypes %}
<tr>
<th>
{{ 'Element Query Type'|t('blitz') }}
</th>
<th>
{{ 'Element Queries'|t('blitz') }}
</th>
<td class="code">
<a href="{{ url('blitz/diagnostics/pages/element-query-type', {
pageId: page.id,
elementType: elementQueryType.type
}) }}">
{{ elementQueryType.type }}
</a>
</td>
<td>
{{ elementQueryType.count|number }}
</td>
</tr>
</thead>
<tbody>
{% for elementQueryType in elementQueryTypes %}
<tr>
<td class="code">
<a href="{{ url('blitz/diagnostics/pages/element-query-type', {
pageId: page.id,
elementType: elementQueryType.type
}) }}">
{{ elementQueryType.type }}
</a>
</td>
<td>
{{ elementQueryType.count|number }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}

0 comments on commit 1bfd5b5

Please sign in to comment.