FIX: We should use partials when rendering but keeping the same context.

This commit is contained in:
Robin Ward 2014-03-06 15:56:33 -05:00
parent 102242c9d5
commit 49a1733d97
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@
{{/if}}
{{#if Discourse.SiteSettings.version_checks}}
{{ render 'admin/templates/version_checks' controller }}
{{partial 'admin/templates/version_checks'}}
{{/if}}
<div class="dashboard-stats trust-levels">

View file

@ -350,7 +350,7 @@ Handlebars.registerHelper('customHTML', function(name, contextString, options) {
var container = (options || contextString).data.keywords.controller.container;
if (container.lookup('template:' + name)) {
return Ember.Handlebars.helpers.render.apply(this, arguments);
return Ember.Handlebars.helpers.partial.apply(this, arguments);
}
});