Use dashed names for all templates when using `{{render}}` for future
Ember compatibility
This commit is contained in:
parent
22fd7fb07d
commit
46d8db3d70
|
@ -117,7 +117,7 @@ export default Ember.DefaultResolver.extend({
|
||||||
|
|
||||||
findUnderscoredTemplate: function(parsedName) {
|
findUnderscoredTemplate: function(parsedName) {
|
||||||
var decamelized = parsedName.fullNameWithoutType.decamelize();
|
var decamelized = parsedName.fullNameWithoutType.decamelize();
|
||||||
var underscored = decamelized.replace("-", "_");
|
var underscored = decamelized.replace(/\-/g, "_");
|
||||||
return Ember.TEMPLATES[underscored];
|
return Ember.TEMPLATES[underscored];
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
{{!-- THIS IS AN EMPTY TEMPLATE THAT NEEDS TO BE OVERWRITTEN --}}
|
{{!-- THIS IS AN EMPTY TEMPLATE THAT NEEDS TO BE OVERWRITTEN --}}
|
||||||
|
{{log wat}}
|
|
@ -58,7 +58,7 @@
|
||||||
{{#if model.archetype.hasOptions}}
|
{{#if model.archetype.hasOptions}}
|
||||||
<button class='btn' {{action showOptions}}>{{i18n topic.options}}</button>
|
<button class='btn' {{action showOptions}}>{{i18n topic.options}}</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{render "additionalComposerButtons" model}}
|
{{render "additional-composer-buttons" model}}
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
@ -153,5 +153,5 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if currentUser.canManageTopic}}
|
{{#if currentUser.canManageTopic}}
|
||||||
{{render "topicAdminMenu" content}}
|
{{render "topic-admin-menu" content}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Reference in New Issue