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) { 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];
}, },

View File

@ -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}}

View File

@ -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}}

View File

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