Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / modules / contrib / devel / webprofiler / templates / Collector / extensions.html.twig
1 {% block toolbar %}
2     {% set icon %}
3     <a href="{{ url("webprofiler.dashboard", {profile: token}, {fragment: 'drupal_extension'}) }}"
4        title="{{ 'Extensions'|t }}">
5         <img width="20" height="28" alt="{{ 'Extensions'|t }}"
6              src="data:image/png;base64,{{ collector.icon }}"/>
7         <span class="sf-toolbar-info-piece-additional sf-toolbar-status{% if 150 < collector.countExtensions %} sf-toolbar-status-yellow{% endif %}">{{ collector.getExtensionsCount }}</span>
8     </a>
9     {% endset %}
10     {% set text %}
11     <div class="sf-toolbar-info-piece">
12         <b>{{ 'Active Modules'|t }}</b>
13         <span>{{ collector.getModulesCount }}</span>
14     </div>
15     <div class="sf-toolbar-info-piece">
16         <b>{{ 'Active Themes'|t }}</b>
17         <span>{{ collector.getThemesCount }}</span>
18     </div>
19     {% endset %}
20
21     <div class="sf-toolbar-block">
22         <div class="sf-toolbar-icon">{{ icon|default('') }}</div>
23         <div class="sf-toolbar-info">{{ text|default('') }}</div>
24     </div>
25 {% endblock %}
26
27 {% block panel %}
28     <script id="drupal_extension" type="text/template">
29         <h2 class="panel__title">{{ 'Extensions'|t }}</h2>
30         <div class="tabs">
31             <input class="tabs__radio" type="radio" id="modules" name="tabs" checked/>
32             <input class="tabs__radio" type="radio" id="themes" name="tabs"/>
33             <ul class="tabs__tabs list--inline">
34                 <li><label class="tabs__label" for="modules">{{ 'Modules'|t }}</label></li>
35                 <li><label class="tabs__label" for="themes">{{ 'Themes'|t }}</label></li>
36             </ul>
37
38             <div class="tabs__panels">
39                 <div class="tabs__panel">
40                     <div class="panel__container">
41                         <table class="table--compact">
42                             <thead>
43                             <tr>
44                                 <th>{{ 'Name'|t }}</th>
45                                 <th>{{ 'Path'|t }}</th>
46                                 <th>{{ 'Info file'|t }}</th>
47                             </tr>
48                             </thead>
49                             <tbody>
50                             <% _.each( data.drupal_extension.modules, function( value, key ){ %>
51                             <% if(value.public_type == 'module') { %>
52                             <tr>
53                                 <td><%- key %></td>
54                                 <td><%- value.public_path %></td>
55                                 <td><%= Drupal.webprofiler.helpers.classLink({"file" :
56                                     data.drupal_extension.installation_path + value.public_pathname, "class":
57                                     value.public_pathname, "line": 0}) %>
58                                 </td>
59                             </tr>
60                             <% } %>
61                             <% }); %>
62                             </tbody>
63                         </table>
64                     </div>
65                 </div>
66
67                 <div class="tabs__panel">
68                     <div class="panel__container">
69                         <table class="table--compact">
70                             <thead>
71                             <tr>
72                                 <th>{{ 'Name'|t }}</th>
73                                 <th>{{ 'Path'|t }}</th>
74                                 <th>{{ 'Info file'|t }}</th>
75                             </tr>
76                             </thead>
77                             <tbody>
78                             <% _.each( data.drupal_extension.themes, function( value, key ){ %>
79                             <tr>
80                                 <td><%- key %></td>
81                                 <td><%- value.public_path %></td>
82                                 <td><%= Drupal.webprofiler.helpers.classLink({"file" :
83                                     data.drupal_extension.installation_path + value.public_pathname, "class":
84                                     value.public_pathname, "line": 0}) %>
85                                 </td>
86                             </tr>
87                             <% }); %>
88                             </tbody>
89                         </table>
90                     </div>
91                 </div>
92             </div>
93         </div>
94     </script>
95 {% endblock %}