Use dashed names for all templates when using `{{render}}` for future

Ember compatibility
This commit is contained in:
Robin Ward 2014-09-12 15:03:33 -04:00
parent 22fd7fb07d
commit 46d8db3d70
6 changed files with 4 additions and 3 deletions

View File

@ -117,7 +117,7 @@ export default Ember.DefaultResolver.extend({
findUnderscoredTemplate: function(parsedName) {
var decamelized = parsedName.fullNameWithoutType.decamelize();
var underscored = decamelized.replace("-", "_");
var underscored = decamelized.replace(/\-/g, "_");
return Ember.TEMPLATES[underscored];
},

View File

@ -58,7 +58,7 @@
{{#if model.archetype.hasOptions}}
<button class='btn' {{action showOptions}}>{{i18n topic.options}}</button>
{{/if}}
{{render "additionalComposerButtons" model}}
{{render "additional-composer-buttons" model}}
{{/unless}}
</div>
{{/if}}

View File

@ -153,5 +153,5 @@
{{/if}}
{{#if currentUser.canManageTopic}}
{{render "topicAdminMenu" content}}
{{render "topic-admin-menu" content}}
{{/if}}