mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-24 21:13:54 -04:00
Use dashed names for all templates when using {{render}}
for future
Ember compatibility
This commit is contained in:
parent
22fd7fb07d
commit
46d8db3d70
6 changed files with 4 additions and 3 deletions
app/assets/javascripts/discourse
|
@ -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];
|
||||
},
|
||||
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
{{!-- THIS IS AN EMPTY TEMPLATE THAT NEEDS TO BE OVERWRITTEN --}}
|
||||
{{log wat}}
|
|
@ -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}}
|
||||
|
|
|
@ -153,5 +153,5 @@
|
|||
{{/if}}
|
||||
|
||||
{{#if currentUser.canManageTopic}}
|
||||
{{render "topicAdminMenu" content}}
|
||||
{{render "topic-admin-menu" content}}
|
||||
{{/if}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue