mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Later versions of ember require dashes in template names
This commit is contained in:
parent
dd9ba3c50c
commit
985b855a5b
46 changed files with 15 additions and 19 deletions
|
@ -4,5 +4,5 @@ import ListItemView from 'ember-addons/list-item-view';
|
||||||
export default ListView.extend({
|
export default ListView.extend({
|
||||||
height: 700,
|
height: 700,
|
||||||
rowHeight: 32,
|
rowHeight: 32,
|
||||||
itemViewClass: ListItemView.extend({templateName: "admin/templates/permalinks_list_item"})
|
itemViewClass: ListItemView.extend({templateName: "admin/templates/permalinks-list-item"})
|
||||||
});
|
});
|
||||||
|
|
|
@ -4,5 +4,5 @@ import ListItemView from 'ember-addons/list-item-view';
|
||||||
export default ListView.extend({
|
export default ListView.extend({
|
||||||
height: 700,
|
height: 700,
|
||||||
rowHeight: 32,
|
rowHeight: 32,
|
||||||
itemViewClass: ListItemView.extend({templateName: "admin/templates/logs/screened_emails_list_item"})
|
itemViewClass: ListItemView.extend({templateName: "admin/templates/logs/screened-emails-list-item"})
|
||||||
});
|
});
|
||||||
|
|
|
@ -4,5 +4,5 @@ import ListItemView from 'ember-addons/list-item-view';
|
||||||
export default ListView.extend({
|
export default ListView.extend({
|
||||||
height: 700,
|
height: 700,
|
||||||
rowHeight: 32,
|
rowHeight: 32,
|
||||||
itemViewClass: ListItemView.extend({templateName: "admin/templates/logs/screened_ip_addresses_list_item"})
|
itemViewClass: ListItemView.extend({templateName: "admin/templates/logs/screened-ip-addresses-list-item"})
|
||||||
});
|
});
|
||||||
|
|
|
@ -4,5 +4,5 @@ import ListItemView from 'ember-addons/list-item-view';
|
||||||
export default ListView.extend({
|
export default ListView.extend({
|
||||||
height: 700,
|
height: 700,
|
||||||
rowHeight: 32,
|
rowHeight: 32,
|
||||||
itemViewClass: ListItemView.extend({templateName: "admin/templates/logs/screened_urls_list_item"})
|
itemViewClass: ListItemView.extend({templateName: "admin/templates/logs/screened-urls-list-item"})
|
||||||
});
|
});
|
||||||
|
|
|
@ -4,5 +4,5 @@ import ListItemView from 'ember-addons/list-item-view';
|
||||||
export default ListView.extend({
|
export default ListView.extend({
|
||||||
height: 700,
|
height: 700,
|
||||||
rowHeight: 75,
|
rowHeight: 75,
|
||||||
itemViewClass: ListItemView.extend({templateName: "admin/templates/logs/staff_action_logs_list_item"})
|
itemViewClass: ListItemView.extend({templateName: "admin/templates/logs/staff-action-logs-list-item"})
|
||||||
});
|
});
|
||||||
|
|
|
@ -3,9 +3,5 @@ import EmailSettings from 'admin/models/email-settings';
|
||||||
export default Discourse.Route.extend({
|
export default Discourse.Route.extend({
|
||||||
model() {
|
model() {
|
||||||
return EmailSettings.find();
|
return EmailSettings.find();
|
||||||
},
|
|
||||||
|
|
||||||
renderTemplate() {
|
|
||||||
this.render('admin/templates/email_index', { into: 'adminEmail' });
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
export default Discourse.Route.extend({
|
export default Discourse.Route.extend({
|
||||||
renderTemplate: function() {
|
renderTemplate: function() {
|
||||||
this.render('admin/templates/logs/screened_emails', {into: 'adminLogs'});
|
this.render('admin/templates/logs/screened-emails', {into: 'adminLogs'});
|
||||||
},
|
},
|
||||||
|
|
||||||
setupController: function() {
|
setupController: function() {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
export default Discourse.Route.extend({
|
export default Discourse.Route.extend({
|
||||||
renderTemplate() {
|
renderTemplate() {
|
||||||
this.render('admin/templates/logs/screened_ip_addresses', {into: 'adminLogs'});
|
this.render('admin/templates/logs/screened-ip-addresses', {into: 'adminLogs'});
|
||||||
},
|
},
|
||||||
|
|
||||||
setupController() {
|
setupController() {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
export default Discourse.Route.extend({
|
export default Discourse.Route.extend({
|
||||||
renderTemplate: function() {
|
renderTemplate: function() {
|
||||||
this.render('admin/templates/logs/screened_urls', {into: 'adminLogs'});
|
this.render('admin/templates/logs/screened-urls', {into: 'adminLogs'});
|
||||||
},
|
},
|
||||||
|
|
||||||
setupController: function() {
|
setupController: function() {
|
||||||
|
|
|
@ -3,7 +3,7 @@ import showModal from 'discourse/lib/show-modal';
|
||||||
export default Discourse.Route.extend({
|
export default Discourse.Route.extend({
|
||||||
// TODO: make this automatic using an `{{outlet}}`
|
// TODO: make this automatic using an `{{outlet}}`
|
||||||
renderTemplate: function() {
|
renderTemplate: function() {
|
||||||
this.render('admin/templates/logs/staff_action_logs', {into: 'adminLogs'});
|
this.render('admin/templates/logs/staff-action-logs', {into: 'adminLogs'});
|
||||||
},
|
},
|
||||||
|
|
||||||
setupController: function(controller) {
|
setupController: function(controller) {
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
<div class="modal-tab new-tab {{unless newSelected 'invisible'}}">
|
<div class="modal-tab new-tab {{unless newSelected 'invisible'}}">
|
||||||
{{#if model.new_value}}
|
{{#if model.new_value}}
|
||||||
{{#with model.new_value}}
|
{{#with model.new_value}}
|
||||||
{{partial "admin/templates/logs/site_customization_change_details"}}
|
{{partial "admin/templates/logs/site-customization-change-details"}}
|
||||||
{{/with}}
|
{{/with}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{i18n 'admin.logs.staff_actions.deleted'}}
|
{{i18n 'admin.logs.staff_actions.deleted'}}
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
<div class="modal-tab previous-tab {{unless previousSelected 'invisible'}}">
|
<div class="modal-tab previous-tab {{unless previousSelected 'invisible'}}">
|
||||||
{{#if model.previous_value}}
|
{{#if model.previous_value}}
|
||||||
{{#with model.previous_value}}
|
{{#with model.previous_value}}
|
||||||
{{partial "admin/templates/logs/site_customization_change_details"}}
|
{{partial "admin/templates/logs/site-customization-change-details"}}
|
||||||
{{/with}}
|
{{/with}}
|
||||||
{{else}}
|
{{else}}
|
||||||
{{i18n 'admin.logs.staff_actions.no_previous'}}
|
{{i18n 'admin.logs.staff_actions.no_previous'}}
|
|
@ -38,7 +38,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
||||||
if (row.length) { buttonRows.push(row); }
|
if (row.length) { buttonRows.push(row); }
|
||||||
|
|
||||||
this.set('buttonRows', buttonRows);
|
this.set('buttonRows', buttonRows);
|
||||||
this.send('changeBulkTemplate', 'modal/bulk_actions_buttons');
|
this.send('changeBulkTemplate', 'modal/bulk-actions-buttons');
|
||||||
},
|
},
|
||||||
|
|
||||||
perform(operation) {
|
perform(operation) {
|
||||||
|
@ -85,12 +85,12 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
||||||
},
|
},
|
||||||
|
|
||||||
showChangeCategory() {
|
showChangeCategory() {
|
||||||
this.send('changeBulkTemplate', 'modal/bulk_change_category');
|
this.send('changeBulkTemplate', 'modal/bulk-change-category');
|
||||||
this.set('modal.modalClass', 'topic-bulk-actions-modal full');
|
this.set('modal.modalClass', 'topic-bulk-actions-modal full');
|
||||||
},
|
},
|
||||||
|
|
||||||
showNotificationLevel() {
|
showNotificationLevel() {
|
||||||
this.send('changeBulkTemplate', 'modal/bulk_notification_level');
|
this.send('changeBulkTemplate', 'modal/bulk-notification-level');
|
||||||
},
|
},
|
||||||
|
|
||||||
deleteTopics() {
|
deleteTopics() {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import ModalBodyView from "discourse/views/modal-body";
|
import ModalBodyView from "discourse/views/modal-body";
|
||||||
|
|
||||||
export default ModalBodyView.extend({
|
export default ModalBodyView.extend({
|
||||||
templateName: 'modal/raw_email',
|
templateName: 'modal/raw-email',
|
||||||
title: I18n.t('raw_email.title'),
|
title: I18n.t('raw_email.title'),
|
||||||
|
|
||||||
resizeModal: function(){
|
resizeModal: function(){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue