Version 1
[yaffs-website] / web / modules / contrib / devel / webprofiler / templates / Collector / routing.html.twig
1 {% block toolbar %}
2     {% set icon %}
3     <a href="{{ url("webprofiler.dashboard", {profile: token}, {fragment: 'routing'}) }}" title="{{ 'Routing'|t }}">
4         <img width="20" height="28" alt="{{ 'Routing'|t }}"
5              src="data:image/png;base64,{{ collector.icon }}">
6         <span class="sf-toolbar-info-piece-additional sf-toolbar-status">{{ collector.getRoutesCount }}</span>
7     </a>
8
9     {% endset %}
10
11     {% set text %}
12     <div class="sf-toolbar-info-piece">
13         <b>{{ 'Routes'|t }}</b>
14         <span>{{ collector.getRoutesCount }}</span>
15     </div>
16     {% endset %}
17
18     <div class="sf-toolbar-block">
19         <div class="sf-toolbar-icon">{{ icon|default('') }}</div>
20         <div class="sf-toolbar-info">{{ text|default('') }}</div>
21     </div>
22 {% endblock %}
23
24 {% block panel %}
25     <script id="routing" type="text/template">
26         <h2 class="panel__title">{{ 'Routing'|t }}</h2>
27         <div class="panel__container">
28             <table class="table--duo">
29                 <thead>
30                 <tr>
31                     <th>{{ 'name'|t }}</th>
32                     <th>{{ 'path'|t }}</th>
33                 </tr>
34                 </thead>
35                 <tbody>
36                 <% _.each( data.routing, function( item ){ %>
37                     <tr>
38                         <td>
39                             <%- item.name %>
40                         </td>
41                         <td>
42                             <%- item.path %>
43                         </td>
44                     </tr>
45                 <% }); %>
46                 </tbody>
47             </table>
48         </div>
49     </script>
50 {% endblock %}