1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-17 13:28:35 +01:00

Allow change sentence for DataCollector

For Datacollector you can add "sentence" in array return of collect function.
This commit is contained in:
GuimDev 2014-01-23 14:03:02 +01:00
parent f98d912252
commit 7bdc75acb1

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));
}