Skip to content

Commit

Permalink
[WebProfilerBundle] Enable translation filters
Browse files Browse the repository at this point in the history
  • Loading branch information
ro0NL committed Nov 22, 2018
1 parent 227cf2c commit 9ae2bb4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Expand Up @@ -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; }
Expand Down
Expand Up @@ -179,24 +179,26 @@
</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>
</tr>
</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>
Expand Down
Expand Up @@ -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
Expand Down

0 comments on commit 9ae2bb4

Please sign in to comment.