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 9ae2bb4

Browse filesBrowse files
committed
[WebProfilerBundle] Enable translation filters
1 parent 227cf2c commit 9ae2bb4
Copy full SHA for 9ae2bb4

File tree

3 files changed

+8
-6
lines changed
Filter options

3 files changed

+8
-6
lines changed

‎src/Symfony/Bundle/TwigBundle/Resources/views/exception.css.twig

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/TwigBundle/Resources/views/exception.css.twig
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ thead.sf-toggle-content.sf-toggle-visible, tbody.sf-toggle-content.sf-toggle-vis
126126
.filter-list-level li.active { cursor: n-resize; }
127127
.filter-list-level li.last-active { cursor: default; }
128128
.filter-list-level li.last-active:before { content: '\2714\00a0'; }
129-
.filter-list-choice li:before { content: '\2714\00a0'; color: var(--tab-background); }
129+
.filter-list-choice li:before { content: '\2714\00a0'; color: transparent; }
130130
.filter-list-choice li.active:before { color: unset; }
131131

132132
.container { max-width: 1024px; margin: 0 auto; padding: 0 15px; }

‎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
+6-4Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,24 +179,26 @@
179179
</div>
180180
</div>
181181

182+
<script>Sfjs.createFilters();</script>
183+
182184
{% endblock messages %}
183185

184186
{% endblock %}
185187

186188
{% macro render_table(messages) %}
187-
<table>
189+
<table data-filters>
188190
<thead>
189191
<tr>
190-
<th>Locale</th>
191-
<th>Domain</th>
192+
<th data-filter="locale">Locale</th>
193+
<th data-filter="domain">Domain</th>
192194
<th>Times used</th>
193195
<th>Message ID</th>
194196
<th>Message Preview</th>
195197
</tr>
196198
</thead>
197199
<tbody>
198200
{% for message in messages %}
199-
<tr>
201+
<tr data-filter-locale="{{ message.locale }}" data-filter-domain="{{ message.domain }}">
200202
<td class="font-normal text-small nowrap">{{ message.locale }}</td>
201203
<td class="font-normal text-small text-bold nowrap">{{ message.domain }}</td>
202204
<td class="font-normal text-small nowrap">{{ message.count }}</td>

‎src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/profiler.css.twig
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ tr.status-warning td {
957957
.filter-list-level li.active { cursor: n-resize; }
958958
.filter-list-level li.last-active { cursor: default; }
959959
.filter-list-level li.last-active:before { content: '\2714\00a0'; }
960-
.filter-list-choice li:before { content: '\2714\00a0'; color: var(--tab-background); }
960+
.filter-list-choice li:before { content: '\2714\00a0'; color: transparent; }
961961
.filter-list-choice li.active:before { color: unset; }
962962

963963
{# Twig panel

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.