- md5
- bf53bc24f5398b36cff1648a9bb908bc
- sha1
- e002ecba38e9d863985edbd49abac64601eaea72
- sha256
- 158f9f06ea24a6c97d75d2d1f795ec6e41d910b61f5ae0736ea244325ef15b6c
(function(a){var t=PhpDebugBar.utils.makecsscls("phpdebugbar-widgets-"),p=PhpDebugBar.Widgets.TemplatesWidget=PhpDebugBar.Widget.extend({className:t("templates"),render:function(){this.$status=a("<div />").addClass(t("status")).appendTo(this.$el),this.$list=new PhpDebugBar.Widgets.ListWidget({itemRenderer:function(s,e){if(a("<span />").addClass(t("name")).text(e.name).appendTo(s),typeof e.xdebug_link<"u"&&e.xdebug_link!==null){var i=a("<span />").addClass(t("filename")).text(e.xdebug_link.filename+(e.xdebug_link.line?"#"+e.xdebug_link.line:""));e.xdebug_link&&(e.xdebug_link.ajax?a('<a title="'+e.xdebug_link.url+'"></a>').on("click",function(){a.ajax(e.xdebug_link.url)}).addClass(t("editor-link")).appendTo(i):a('<a href="'+e.xdebug_link.url+'"></a>').addClass(t("editor-link")).appendTo(i)),i.appendTo(s)}if(e.render_time_str&&a('<span title="Render time" />').addClass(t("render-time")).text(e.render_time_str).appendTo(s),e.memory_str&&a('<span title="Memory usage" />').addClass(t("memory")).text(e.memory_str).appendTo(s),typeof e.param_count<"u"&&a('<span title="Parameter count" />').addClass(t("param-count")).text(e.param_count).appendTo(s),typeof e.type<"u"&&e.type&&a('<span title="Type" />').addClass(t("type")).text(e.type).appendTo(s),typeof e.editorLink<"u"&&e.editorLink&&a('<a href="'+e.editorLink+'" />').on("click",function(r){r.stopPropagation()}).addClass(t("editor-link")).text("file").appendTo(s),e.params&&!a.isEmptyObject(e.params)){var n=a('<table><tr><th colspan="2">Params</th></tr></table>').addClass(t("params")).appendTo(s);for(var d in e.params)typeof e.params[d]!="function"&&n.append('<tr><td class="'+t("name")+'">'+d+'</td><td class="'+t("value")+'"><pre><code>'+e.params[d]+"</code></pre></td></tr>");s.css("cursor","pointer").click(function(){n.is(":visible")?n.hide():n.show()})}}}),this.$list.$el.appendTo(this.$el),this.$callgraph=a("<div />").addClass(t("callgraph")).appendTo(this.$el),this.bindAttr("data",function(s){this.$list.set("data",s.templates),this.$status.empty(),this.$callgraph.empty();var e=s.sentence||"templates were rendered";a("<span />").text(s.nb_templates+" "+e).appendTo(this.$status),s.accumulated_render_time_str&&this.$status.append(a('<span title="Accumulated render time" />').addClass(t("render-time")).text(s.accumulated_render_time_str)),s.memory_usage_str&&this.$status.append(a('<span title="Memory usage" />').addClass(t("memory")).text(s.memory_usage_str)),s.nb_blocks>0&&a("<div />").text(s.nb_blocks+" blocks were rendered").appendTo(this.$status),s.nb_macros>0&&a("<div />").text(s.nb_macros+" macros were rendered").appendTo(this.$status),typeof s.callgraph<"u"&&this.$callgraph.html(s.callgraph)})}})})(PhpDebugBar.$);
No other release has this exact content. See every version of this file.