Made the toolbar to show the version, memory usage, the state of security (both a abbreviation and an associate description) and number of DB requests and request time.
This commit is contained in:
parent
37ad8a61cd
commit
d5e0cccacc
@ -2,15 +2,24 @@
|
||||
|
||||
{% block toolbar %}
|
||||
{% set icon %}
|
||||
<img width="24" height="28" alt="Security" style="border-width: 0; vertical-align: middle; margin-right: 5px;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAcCAYAAAB75n/uAAAC70lEQVR42u2V3UtTYRzHu+mFwCwK+gO6CEryPlg7yiYx50vDqUwjFIZDSYUk2ZTmCysHvg9ZVggOQZiRScsR4VwXTjEwdKZWk8o6gd5UOt0mbev7g/PAkLONIOkiBx+25/v89vuc85zn2Q5Fo9F95UDwnwhS5HK5TyqVRv8m1JN6k+AiC+fn54cwbgFNIrTQ/J9IqDcJJDGBHsgDgYBSq9W6ysvLPf39/SSUUU7zsQ1yc3MjmN90OBzfRkZG1umzQqGIxPSTkIBjgdDkaGNjoza2kcFgUCE/QvMsq6io2PV6vQu1tbV8Xl7etkql2qqvr/+MbDE/Pz8s9OP2Cjhwwmw29+4R3Kec1WZnZ4fn5uamc3Jyttra2qbH8ero6JgdHh5+CvFHq9X6JZHgzODgoCVW0NPTY0N+ltU2Nzdv4GqXsYSrPp+vDw80aLFYxru6uhyQ/rDb7a8TCVJDodB1jUazTVlxcXGQ5/mbyE+z2u7u7veY38BVT3Z2djopm5qa6isrK/tQWVn5qb29fSGR4DC4PDAwMEsZHuArjGnyGKutq6v7ajQaF6urq9/MzMz0QuSemJiwQDwGkR0POhhXgILjNTU1TaWlpTxlOp1uyWQyaUjMajMzM8Nut/tJQUHBOpZppbCwkM/KytrBznuL9xDVxBMo8KXHYnu6qKjIivmrbIy67x6Px4Yd58W672ApfzY0NCyNjo7OZmRkiAv8fr+O47iwmABXtoXaG3uykF6vX7bZbF6cgZWqqiqezYkKcNtmjO+CF2AyhufgjsvlMiU7vXEF+4C4ALf9CwdrlVAqlcFkTdRqdQSHLUDgBEeSC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vXEF+4C4ALf9CwdrlVAqlcFkTdRqdQSHLUDgBEeSCrArAsiGwENs0XfJBE6ncxm1D8Aj/B6tigkkJSUlmxSwLYhMDeRsyyUCd+lHrWxtbe2aTCbbZTn1ZD92F0Cr8GBfgnsgDZwDt8EzMBmHMXBLqD0PDMAh9Gql3iRIESQSIAXp4CRIBZeEjIvDFZAm1J4C6UK9ROiZcvCn/+8FvwHtDdJEaRY+oQAAAABJRU5ErkJggg==" />
|
||||
<span class="sf-toolbar-status sf-toolbar-status-{{ collector.enabled and collector.user ? 'green' : 'red' }}">
|
||||
{% if collector.user %}
|
||||
{{ collector.user }}
|
||||
{% elseif collector.enabled %}
|
||||
?
|
||||
{% else %}
|
||||
X
|
||||
{% endif %}
|
||||
</span>
|
||||
{% endset %}
|
||||
{% set text %}
|
||||
{% if collector.user %}
|
||||
{{ collector.user }} {% if not collector.authenticated %}<em>(not auth.)</em>{% endif %}
|
||||
You are logged in as {{ collector.user }}{% if not collector.authenticated %} <em>(not yet authenticated)</em>{% endif %}.
|
||||
{% elseif collector.enabled %}
|
||||
not authenticated
|
||||
You are not authenticated.
|
||||
{% else %}
|
||||
disabled
|
||||
The security is disabled.
|
||||
{% endif %}
|
||||
{% endset %}
|
||||
{% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': profiler_url } %}
|
||||
|
@ -73,7 +73,7 @@ build: 56
|
||||
background-color: #fff;
|
||||
border: 1px solid #bbb;
|
||||
border-top: 1px solid #fff;
|
||||
padding: 5px 8px;
|
||||
padding: 10px 8px;
|
||||
margin-left: -1px;
|
||||
}
|
||||
|
||||
@ -87,6 +87,13 @@ build: 56
|
||||
background-color: #333;
|
||||
padding: 3px 6px;
|
||||
border-radius: 3px;
|
||||
margin-bottom: 2px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-icon .sf-toolbar-status {
|
||||
border-radius: 12px;
|
||||
border-bottom-left-radius: 0px;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-status-green {
|
||||
@ -119,7 +126,18 @@ build: 56
|
||||
.sf-toolbar-block .sf-toolbar-icon img + span {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
|
||||
.sf-toolbar-info-php {}
|
||||
.sf-toolbar-info-php-ext {}
|
||||
|
||||
.sf-toolbar-info-php-ext .sf-toolbar-status {
|
||||
margin-left: 2px;
|
||||
}
|
||||
|
||||
.sf-toolbar-info-php-ext .sf-toolbar-status:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.sf-toolbarreset:hover {
|
||||
box-shadow: rgba(0, 0, 0, 0.3) 0 0 50px;
|
||||
}
|
||||
|
@ -2,27 +2,13 @@
|
||||
|
||||
{% block toolbar %}
|
||||
{% set icon %}
|
||||
<style type="text/css">
|
||||
.sf-toolbar-info-php {
|
||||
}
|
||||
|
||||
.sf-toolbar-info-php-ext {
|
||||
}
|
||||
|
||||
.sf-toolbar-info-php-ext .sf-toolbar-status {
|
||||
margin-left: 2px;
|
||||
}
|
||||
|
||||
.sf-toolbar-info-php-ext .sf-toolbar-status:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
<a href="http://symfony.com/">
|
||||
<img width="26" height="28" alt="Symfony" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAcCAMAAABIzV/hAAACZFBMVEUwLjL///////////////////////////////////////////////////////////////////+Eg4b///+Ni46Xlpj///////////+op6n///////////////////////////////////////////////////////////9ZWFv///////9qaWz///////+mpaf///////////////9ZWFv///////////////9PTVH///91dHb////////////////////g4OD///9NTE+Ih4r///////+Ni47///////92dHeRkJLk5OTLy8xlY2b///////+cm53///////+5ubr////o6Oj////////U1NT///9DQURsa22rq6ysq61hX2L///+LioxTUVVBP0NEQkZpZ2rGxsf///9ram3////s7O2SkZNfXmFxcHKmpae4uLnKysuXlpiop6l3dXiIh4pYVlmrq6ycm52trK7Nzc48Oj5dW158e36dnJ49Oz/Pz9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R1nbMNqP3fSOCN8PZnQynEW5W/nmHy0PXv79eHpRSjsjtEOtWZcRc9YXlNx7VFKwceGYHjG6s0Ob3iK+X3LqlKnjkvt39rjD6w3W6BhvrCdaVw//ADrWicJIvtkmAAAAAElFTkSuQmCC"/>
|
||||
</a>
|
||||
<span>{{ collector.symfonyversion }}</span>
|
||||
</a>
|
||||
{% endset %}
|
||||
{% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': false, 'text': collector.symfonyversion } %}
|
||||
{% set text %}{% endset %}
|
||||
{% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': false } %}
|
||||
|
||||
{% set icon %}
|
||||
<span>
|
||||
|
@ -4,6 +4,7 @@
|
||||
{% set icon %}
|
||||
<span>
|
||||
<img width="13" height="28" alt="Memory Usage" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAAcBAMAAABITyhxAAAAJ1BMVEXNzc3///////////////////////8/Pz////////////+NjY0/Pz9lMO+OAAAADHRSTlMAABAgMDhAWXCvv9e8JUuyAAAAQ0lEQVQI12MQBAMBBmLpMwoMDAw6BxjOOABpHyCdAKRzsNDp5eXl1KBh5oHBAYY9YHoDQ+cqIFjZwGCaBgSpBrjcCwCZgkUHKKvX+wAAAABJRU5ErkJggg=="/>
|
||||
<span>{{ '%.1f'|format(collector.memory / 1024 / 1024) }} MB</span>
|
||||
</span>
|
||||
{% endset %}
|
||||
{% set text %}
|
||||
|
@ -18,7 +18,12 @@
|
||||
<img width="16" height="28" alt="Time" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAcCAYAAABoMT8aAAABqUlEQVR42t2Vv0sCYRyHX9OmEhsMx/YKGlwLQ69DTEUSBJEQEy5J3FRc/BsuiFqEIIcQIRo6ysUhoaBBWhoaGoJwiMJLglRKrs8bXgienmkQdPDAwX2f57j3fhFJkkbiPwTK5bIiFoul3kmPud8MqKMewDXpwuGww+12n9hsNhFnlijYf/Z4PDmO45Yxo+10ZFGTyWRMEItU6AdCx7lczkgd6n7J2Wx2xm63P6jJMk6n80YQBBN1aUDv9XqvlAbbm2LE7/cLODRB0un0VveAeoDC8/waCQQC18MGQqHQOcEKvw8bcLlcL6TfYnVtCrGRAlartUUYhmn1jKg/E3USjUYfhw3E4/F7ks/nz4YNFIvFQ/ogbUYikdefyqlU6gnuOg2YK5XKvs/n+xhUDgaDTVEUt+HO04ABOBA5isViDTU5kUi81Wq1AzhWMEkDGmAEq2C3UCjcYXGauDvfEsuyUjKZbJRKpVvM8IABU9SVX+cxYABmwIE9cFqtVi9xtgvsC2AHbIAFoKey0gdlHEyDObAEWLACFsEsMALdIJ80+dK0bTS95v7+v/AJnis0eO906QwAAAAASUVORK5CYII="/>
|
||||
<span>{{ '%.0f'|format(collector.totaltime) }} ms</span>
|
||||
{% endset %}
|
||||
{% set text %}{% endset %}
|
||||
{% set text %}
|
||||
<div class="sf-toolbar-info-piece">
|
||||
<b>Total time</b>
|
||||
<span>{{ '%.0f'|format(collector.totaltime) }} ms</span>
|
||||
</div>
|
||||
{% endset %}
|
||||
{% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': profiler_url } %}
|
||||
{% endblock %}
|
||||
|
||||
|
@ -47,6 +47,7 @@
|
||||
border-right: 1px solid #cdcdcd;
|
||||
padding: 0;
|
||||
float: left;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.sf-toolbar-block span {
|
||||
@ -91,7 +92,7 @@
|
||||
border-top: 1px solid #fff;
|
||||
{% endif %}
|
||||
|
||||
padding: 5px 8px;
|
||||
padding: 10px 8px;
|
||||
margin-left: -1px;
|
||||
}
|
||||
|
||||
@ -105,6 +106,13 @@
|
||||
background-color: #333;
|
||||
padding: 3px 6px;
|
||||
border-radius: 3px;
|
||||
margin-bottom: 2px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-icon .sf-toolbar-status {
|
||||
border-radius: 12px;
|
||||
border-bottom-left-radius: 0px;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-status-green {
|
||||
@ -127,6 +135,13 @@
|
||||
padding: 5px 8px;
|
||||
min-width: 20px;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-icon > a,
|
||||
.sf-toolbar-block .sf-toolbar-icon > a:link
|
||||
.sf-toolbar-block .sf-toolbar-icon > a:hover {
|
||||
color: black !important;
|
||||
}
|
||||
|
||||
.sf-toolbar-block .sf-toolbar-icon img {
|
||||
@ -138,6 +153,17 @@
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.sf-toolbar-info-php {}
|
||||
.sf-toolbar-info-php-ext {}
|
||||
|
||||
.sf-toolbar-info-php-ext .sf-toolbar-status {
|
||||
margin-left: 2px;
|
||||
}
|
||||
|
||||
.sf-toolbar-info-php-ext .sf-toolbar-status:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.sf-toolbarreset:hover {
|
||||
box-shadow: rgba(0, 0, 0, 0.3) 0 0 50px;
|
||||
}
|
||||
@ -149,7 +175,7 @@
|
||||
.sf-toolbar-block:hover .sf-toolbar-icon {
|
||||
background-color: #fff;
|
||||
}
|
||||
.sf-toolbar-block:hover .sf-toolbar-icon + .sf-toolbar-info {
|
||||
.sf-toolbar-block:hover .sf-toolbar-info {
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user