From 23b8a562463e91412089b67e401b142932b7d3da Mon Sep 17 00:00:00 2001 From: WouterJ Date: Mon, 10 Aug 2015 08:36:12 +0200 Subject: [PATCH 1/2] Added general sf-toolbar-block-right class --- .../Resources/views/Collector/config.html.twig | 2 +- .../WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig | 2 +- .../Resources/views/Profiler/toolbar_item.html.twig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig index 669f654b72fd9..deab6989e4469 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig @@ -108,7 +108,7 @@ {% endif %} {% endset %} - {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: true, name: 'config', status: block_status }) }} + {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: true, name: 'config', status: block_status, additional_classes: 'sf-toolbar-block-right' }) }} {% endblock %} {% block menu %} diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig index 6d07bc4e0babb..6b15a33bb8fe2 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig @@ -436,7 +436,7 @@ font-size: 13px; } - .sf-toolbar-block-config { + .sf-toolbar-block-right { float: right; margin-left: 0; margin-right: 0; diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_item.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_item.html.twig index 2f30e05c9a6b3..7424f1fcef137 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_item.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar_item.html.twig @@ -1,4 +1,4 @@ -
+
{% if link %}{% endif %}
{{ icon|default('') }}
{% if link %}
{% endif %} From 049fdfed84caf6af6b1469f1b0c2a88004b15c0e Mon Sep 17 00:00:00 2001 From: WouterJ Date: Wed, 30 Sep 2015 15:05:28 +0200 Subject: [PATCH 2/2] Add a way to group toolbar info pieces --- .../views/Collector/config.html.twig | 127 +++++++++--------- .../Resources/views/Profiler/toolbar.css.twig | 10 ++ 2 files changed, 76 insertions(+), 61 deletions(-) diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig index deab6989e4469..a2a7dff8b49f0 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/config.html.twig @@ -31,81 +31,86 @@ {% endset %} {% set text %} - {% if collector.applicationname %} +
+ {% if collector.applicationname %} +
+ {{ collector.applicationname }} + {{ collector.applicationversion }} +
+ {% endif %} +
- {{ collector.applicationname }} - {{ collector.applicationversion }} + Profiler token + + {% if profiler_url %} + {{ collector.token }} + {% else %} + {{ collector.token }} + {% endif %} +
- {% endif %} -
- Profiler token - - {% if profiler_url %} - {{ collector.token }} - {% else %} - {{ collector.token }} - {% endif %} - + {% if 'n/a' != collector.appname %} +
+ Kernel name + {{ collector.appname }} +
+ {% endif %} + + {% if 'n/a' != collector.env %} +
+ Environment + {{ collector.env }} +
+ {% endif %} + + {% if 'n/a' != collector.debug %} +
+ Debug + {{ collector.debug ? 'enabled' : 'disabled' }} +
+ {% endif %}
- {% if 'n/a' != collector.appname %} -
- Kernel name - {{ collector.appname }} +
+
+ PHP version + + {{ collector.phpversion }} +   View phpinfo() +
- {% endif %} - {% if 'n/a' != collector.env %} -
- Environment - {{ collector.env }} +
+ PHP Extensions + xdebug + accel
- {% endif %} - {% if 'n/a' != collector.debug %}
- Debug - {{ collector.debug ? 'enabled' : 'disabled' }} + PHP SAPI + {{ collector.sapiName }}
- {% endif %} - -
- PHP version - - {{ collector.phpversion }} -   View phpinfo() -
-
- PHP Extensions - xdebug - accel -
- -
- PHP SAPI - {{ collector.sapiName }} +
+ {% if collector.symfonyversion is defined %} +
+ Resources + + {% if 'Silex' == collector.applicationname %} + + Read Silex Docs + + {% else %} + + Read Symfony {{ collector.symfonyversion }} Docs + + {% endif %} + +
+ {% endif %}
- - - {% if collector.symfonyversion is defined %} -
- Resources - - {% if 'Silex' == collector.applicationname %} - - Read Silex Docs - - {% else %} - - Read Symfony {{ collector.symfonyversion }} Docs - - {% endif %} - -
- {% endif %} {% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: true, name: 'config', status: block_status, additional_classes: 'sf-toolbar-block-right' }) }} diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig index 6b15a33bb8fe2..1b61835d10d56 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/toolbar.css.twig @@ -104,6 +104,16 @@ .sf-toolbar-block .sf-toolbar-info-piece-additional-detail { display: none; } +.sf-toolbar-block .sf-toolbar-info-group { + margin-bottom: 4px; + padding-bottom: 2px; + border-bottom: 1px solid #333333; +} +.sf-toolbar-block .sf-toolbar-info-group:last-child { + margin-bottom: 0; + padding-bottom: 0; + border-bottom: none; +} .sf-toolbar-block .sf-toolbar-info-piece .sf-toolbar-status { padding: 2px 5px; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy