Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7a9929f

Browse filesBrowse 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
Copy full SHA for 7a9929f

File tree

1 file changed

+13
-15
lines changed
Filter options

1 file changed

+13
-15
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/translation.html.twig
+13-15Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.