1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-17 05:18:32 +01:00

Merge pull request #82 from GuimDev/patch-1

Allow change sentence for DataCollector
This commit is contained in:
Maxime Bouroumeau-Fuseau 2014-01-24 06:47:53 -08:00
commit 17159e66e7

View File

@ -476,7 +476,8 @@ if (typeof(PhpDebugBar) == 'undefined') {
this.bindAttr('data', function(data) {
this.$list.set('data', data.templates);
this.$status.empty().append($('<span />').text(data.templates.length + " templates were rendered"));
var sentence = data.sentence || "templates were rendered";
this.$status.empty().append($('<span />').text(data.templates.length + " " + sentence));
if (data.accumulated_render_time_str) {
this.$status.append($('<span title="Accumulated render time" />').addClass(csscls('render_time')).text(data.accumulated_render_time_str));
}