Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TwigHooks] Remove translations on profiler #160

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/TwigHooks/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"symfony/dotenv": "^6.4 || ^7.0",
"symfony/framework-bundle": "^6.4 || ^7.0",
"symfony/runtime": "^6.4 || ^7.0",
"symfony/translation": "^6.4 || ^7.0",
"symfony/twig-bundle": "^6.4 || ^7.0",
"symfony/web-profiler-bundle": "^6.4 || ^7.0",
"symfony/yaml": "^6.4 || ^7.0",
Expand Down
18 changes: 9 additions & 9 deletions src/TwigHooks/templates/data_collector/hooks.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@

<div class="sf-toolbar-info">
<div class="sf-toolbar-info-piece">
<b>{{ 'sylius_twig_hooks.profiler.metrics.render_time'|trans }}</b>
<b>Render time</b>
<span>{{ collector.totalDuration }} ms</span>
</div>
<div class="sf-toolbar-info-piece">
<b>{{ 'sylius_twig_hooks.profiler.metrics.rendered_hooks'|trans }}</b>
<b>Hooks</b>
<span class="sf-toolbar-status">{{ collector.numberOfHooks }}</span>
</div>
<div class="sf-toolbar-info-piece">
<b>{{ 'sylius_twig_hooks.profiler.metrics.rendered_hookables'|trans }}</b>
<b>Hookables</b>
<span class="sf-toolbar-status">{{ collector.numberOfHookables }}</span>
</div>
</div>
Expand All @@ -58,31 +58,31 @@
<span class="icon">
{{ include('@SyliusTwigHooks/data_collector/icon.svg') }}
</span>
<strong>{{ 'sylius_twig_hooks.profiler.menu.title'|trans }}</strong>
<strong>Twig Hooks</strong>
</span>
{% endblock %}

{% block panel %}
<h2>{{ 'sylius_twig_hooks.profiler.metrics.title'|trans }}</h2>
<h2>Twig Hooks Metrics</h2>

<div class="metrics">
<div class="metric">
<span class="value">{{ collector.totalDuration }} <span class="unit">ms</span></span>
<span class="label">{{ 'sylius_twig_hooks.profiler.metrics.total_execution_time'|trans }}</span>
<span class="label">Total execution time</span>
</div>

<div class="metric">
<span class="value">{{ collector.numberOfHooks }}</span>
<span class="label">{{ 'sylius_twig_hooks.profiler.metrics.rendered_hooks'|trans }}</span>
<span class="label">Hooks</span>
</div>

<div class="metric">
<span class="value">{{ collector.numberOfHookables }}</span>
<span class="label">{{ 'sylius_twig_hooks.profiler.metrics.rendered_hookables'|trans }}</span>
<span class="label">Hookables</span>
</div>
</div>

<h2>{{ 'sylius_twig_hooks.profiler.call_graph.title'|trans }}</h2>
<h2>Call Graph</h2>

<div id="twig-dump">
{{ collector.callGraph }}
Expand Down
12 changes: 0 additions & 12 deletions src/TwigHooks/translations/messages.en.yaml

This file was deleted.

Loading