mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: We should use partials when rendering but keeping the same context.
This commit is contained in:
parent
102242c9d5
commit
49a1733d97
2 changed files with 2 additions and 2 deletions
|
@ -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">
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue