8000 minor #26410 [WebProfilerBundle] Made the translation profiler panel … · symfony/symfony@7a9929f · GitHub
[go: up one dir, main page]

Skip to content

Commit 7a9929f

Browse files
committed
minor #26410 [WebProfilerBundle] Made the translation profiler panel more compact (javiereguiluz)
This PR was merged into the 4.1-dev branch. Discussion ---------- [WebProfilerBundle] Made the translation profiler panel more compact | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - ### Before ![before](https://user-images.githubusercontent.com/73419/36983246-2201e208-2092-11e8-897b-a31862a9a745.png) ### After ![after](https://user-images.githubusercontent.com/73419/36983252-26ac3df8-2092-11e8-81f4-44384cef8851.png) Commits ------- 21ee76c Made the translation profiler panel more compact
2 parents a8dc953 + 21ee76c commit 7a9929f

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/translation.html.twig

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,7 @@
6868

6969
{% block panelContent %}
7070

71-
<h2>Translation Locales</h2>
72-
73-
<div class="metrics">
74-
<div class="metric">
75-
<span class="value">{{ collector.locale|default('-') }}</span>
76-
<span class="label">Locale</span>
77-
</div>
78-
<div class="metric">
79-
<span class="value">{{ collector.fallbackLocales|join(', ')|default('-') }}</span>
80-
<span class="label">Fallback locales</span>
81-
</div>
82-
</div>
83-
84-
<h2>Translation Metrics</h2>
71+
<h2>Translation</h2>
8572

8673
<div class="metrics">
8774
<div class="metric">
@@ -98,9 +85,20 @@
9885
<span class="value">{{ collector.countMissings }}</span>
9986
<span class="label">Missing messages</span>
10087
</div>
88+
89+
<div class="metric-divider"></div>
90+
91+
<div class="metric">
92+
<span class="value">{{ collector.locale|default('-') }}</span>
93+
<span class="label">Locale</span>
94+
</div>
95+
<div class="metric">
96+
<span class="value">{{ collector.fallbackLocales|join(', ')|default('-') }}</span>
97+
<span class="label">Fallback locale{{ collector.fallbackLocales|length != 1 ? 's' }}</span>
98+
</div>
10199
</div>
102100

103-
<h2>Translation Messages</h2>
101+
<h2>Messages</h2>
104102

105103
{% block messages %}
106104

0 commit comments

Comments
 (0)
0