[WebProfilerBundle] Enable translation filters

This commit is contained in:
Roland Franssen 2018-11-22 19:37:19 +01:00
parent 227cf2cc22
commit 9ae2bb45b2
3 changed files with 8 additions and 6 deletions

View File

@ -126,7 +126,7 @@ thead.sf-toggle-content.sf-toggle-visible, tbody.sf-toggle-content.sf-toggle-vis
.filter-list-level li.active { cursor: n-resize; }
.filter-list-level li.last-active { cursor: default; }
.filter-list-level li.last-active:before { content: '\2714\00a0'; }
.filter-list-choice li:before { content: '\2714\00a0'; color: var(--tab-background); }
.filter-list-choice li:before { content: '\2714\00a0'; color: transparent; }
.filter-list-choice li.active:before { color: unset; }
.container { max-width: 1024px; margin: 0 auto; padding: 0 15px; }

View File

@ -179,16 +179,18 @@
</div>
</div>
<script>Sfjs.createFilters();</script>
{% endblock messages %}
{% endblock %}
{% macro render_table(messages) %}
<table>
<table data-filters>
<thead>
<tr>
<th>Locale</th>
<th>Domain</th>
<th data-filter="locale">Locale</th>
<th data-filter="domain">Domain</th>
<th>Times used</th>
<th>Message ID</th>
<th>Message Preview</th>
@ -196,7 +198,7 @@
</thead>
<tbody>
{% for message in messages %}
<tr>
<tr data-filter-locale="{{ message.locale }}" data-filter-domain="{{ message.domain }}">
<td class="font-normal text-small nowrap">{{ message.locale }}</td>
<td class="font-normal text-small text-bold nowrap">{{ message.domain }}</td>
<td class="font-normal text-small nowrap">{{ message.count }}</td>

View File

@ -957,7 +957,7 @@ tr.status-warning td {
.filter-list-level li.active { cursor: n-resize; }
.filter-list-level li.last-active { cursor: default; }
.filter-list-level li.last-active:before { content: '\2714\00a0'; }
.filter-list-choice li:before { content: '\2714\00a0'; color: var(--tab-background); }
.filter-list-choice li:before { content: '\2714\00a0'; color: transparent; }
.filter-list-choice li.active:before { color: unset; }
{# Twig panel