You are here

config.html.twig in Devel 8.3

{% block toolbar %}
    {% set icon %}
    <a href="{{ url("webprofiler.dashboard", {profile: token}, {fragment: "config"}) }}" title="{{ 'Config'|t }}">
        <img width="20" height="28" alt="{{ 'Config'|t }}"
             src="data:image/png;base64,{{ collector.icon }}"/>
        <span class="sf-toolbar-info-piece-additional sf-toolbar-status">{{ collector.getConfigNames|length }}</span>
    </a>
    {% endset %}
    {% set text %}
    <div class="sf-toolbar-info-piece">
        <b>{{ 'Config get'|t }}</b>
        <span>{{ collector.getConfigNames|length }}</span>
    </div>
    {% endset %}

    <div class="sf-toolbar-block">
        <div class="sf-toolbar-icon">{{ icon|default('') }}</div>
        <div class="sf-toolbar-info">{{ text|default('') }}</div>
    </div>
{% endblock %}

{% block panel %}
    <script id="config" type="text/template">
        <h2 class="panel__title">{{ 'Configuration'|t }}</h2>
        <div class="panel__container">
            <table>
                <% _.each( data.config_names, function( item, key ){ %>
                <tr>
                    <th><%- key %></th>
                    <td><%= Drupal.webprofiler.helpers.frm(item) %></td>
                </tr>
                <% }); %>
            </table>

        </div>
    </script>
{% endblock %}

File

webprofiler/templates/Collector/config.html.twig
View source
  1. {% block toolbar %}
  2. {% set icon %}
  3. <a href="{{ url("webprofiler.dashboard", {profile: token}, {fragment: "config"}) }}" title="{{ 'Config'|t }}">
  4. <img width="20" height="28" alt="{{ 'Config'|t }}"
  5. src="data:image/png;base64,{{ collector.icon }}"/>
  6. <span class="sf-toolbar-info-piece-additional sf-toolbar-status">{{ collector.getConfigNames|length }}</span>
  7. </a>
  8. {% endset %}
  9. {% set text %}
  10. <div class="sf-toolbar-info-piece">
  11. <b>{{ 'Config get'|t }}</b>
  12. <span>{{ collector.getConfigNames|length }}</span>
  13. </div>
  14. {% endset %}
  15. <div class="sf-toolbar-block">
  16. <div class="sf-toolbar-icon">{{ icon|default('') }}</div>
  17. <div class="sf-toolbar-info">{{ text|default('') }}</div>
  18. </div>
  19. {% endblock %}
  20. {% block panel %}
  21. <script id="config" type="text/template">
  22. <h2 class="panel__title">{{ 'Configuration'|t }}</h2>
  23. <div class="panel__container">
  24. <table>
  25. <% _.each( data.config_names, function( item, key ){ %>
  26. <tr>
  27. <th><%- key %></th>
  28. <td><%= Drupal.webprofiler.helpers.frm(item) %></td>
  29. </tr>
  30. <% }); %>
  31. </table>
  32. </div>
  33. </script>
  34. {% endblock %}