mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-16 06:16:31 +02:00
Merge pull request #82 from GuimDev/patch-1
Allow change sentence for DataCollector
This commit is contained in:
@ -476,7 +476,8 @@ if (typeof(PhpDebugBar) == 'undefined') {
|
|||||||
|
|
||||||
this.bindAttr('data', function(data) {
|
this.bindAttr('data', function(data) {
|
||||||
this.$list.set('data', data.templates);
|
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) {
|
if (data.accumulated_render_time_str) {
|
||||||
this.$status.append($('<span title="Accumulated render time" />').addClass(csscls('render_time')).text(data.accumulated_render_time_str));
|
this.$status.append($('<span title="Accumulated render time" />').addClass(csscls('render_time')).text(data.accumulated_render_time_str));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user