From 762d90d859c068426c67c3842ba0198a87b958bc Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Sat, 28 Jan 2012 18:56:53 +0100 Subject: [PATCH] [Profiler] Buid a common infrastructure --- .../Resources/public/css/profiler.css | 6 ++ .../public/images/profiler/spinner.gif | Bin 0 -> 2465 bytes .../views/Profiler/ajax_layout.html.twig | 1 + .../views/Profiler/base_js.html.twig | 72 ++++++++++++++++++ .../Resources/views/Profiler/layout.html.twig | 1 + 5 files changed, 80 insertions(+) create mode 100644 src/Symfony/Bundle/WebProfilerBundle/Resources/public/images/profiler/spinner.gif create mode 100644 src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/ajax_layout.html.twig create mode 100644 src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/public/css/profiler.css b/src/Symfony/Bundle/WebProfilerBundle/Resources/public/css/profiler.css index 3b711c49b4..5902f34aa4 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/public/css/profiler.css +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/public/css/profiler.css @@ -450,3 +450,9 @@ td.main, td.menu { #collector_content .routing tr.almost td { background-color: #fa0; } + +.loading { + background: transparent url(../images/profiler/spinner.gif) scroll no-repeat 50% 50%; + height: 30px; + display: none; +} \ No newline at end of file diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/public/images/profiler/spinner.gif b/src/Symfony/Bundle/WebProfilerBundle/Resources/public/images/profiler/spinner.gif new file mode 100644 index 0000000000000000000000000000000000000000..99eb012a9ce067cd53fdc6b97170f52b944576b9 GIT binary patch literal 2465 zcmb`|e^8V69S87lAion3$O9xH2_e4|!jAy%s`GmIBv@)=_>o7J3N4D6QsrC@f;xw7 zihvB5qM(99R7|U-DA=Ma16!&Tsbw2F&hsqmM#pux&2wFk+ig2;?#(@}+wImn{#gFV zpU>U%e!btH=eg%MJhNt-oXE)=gm5Fc4NVOblM`hxmxbR9t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1v`}T)J5jK_o%i9Ja`Sw2n DSMNV+ literal 0 HcmV?d00001 diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/ajax_layout.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/ajax_layout.html.twig new file mode 100644 index 0000000000..407650745e --- /dev/null +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/ajax_layout.html.twig @@ -0,0 +1 @@ +{% block panel '' %} \ No newline at end of file diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig new file mode 100644 index 0000000000..24f05bae54 --- /dev/null +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig @@ -0,0 +1,72 @@ + \ No newline at end of file diff --git a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig index bf63632c12..6c8df7e4e7 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig +++ b/src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/layout.html.twig @@ -27,6 +27,7 @@ {% endif %}
+ {% include 'WebProfilerBundle:Profiler:base_js.html.twig' %} {% block panel '' %}