Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit9ae2bb4

Browse files
committed
[WebProfilerBundle] Enable translation filters
1 parent227cf2c commit9ae2bb4

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

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

Lines 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‎

Lines 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
{%endblockmessages %}
183185

184186
{%endblock %}
185187

186188
{%macro render_table(messages) %}
187-
<table>
189+
<tabledata-filters>
188190
<thead>
189191
<tr>
190-
<th>Locale</th>
191-
<th>Domain</th>
192+
<thdata-filter="locale">Locale</th>
193+
<thdata-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
{%formessageinmessages %}
199-
<tr>
201+
<trdata-filter-locale="{{message.locale }}"data-filter-domain="{{message.domain }}">
200202
<tdclass="font-normal text-small nowrap">{{message.locale }}</td>
201203
<tdclass="font-normal text-small text-bold nowrap">{{message.domain }}</td>
202204
<tdclass="font-normal text-small nowrap">{{message.count }}</td>

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

Lines 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)

[8]ページ先頭

©2009-2025 Movatter.jp