- {{#with selectedItem}}
- {{text-field class="style-name" value=name}}
+ {{text-field class="style-name" value=selectedItem.name}}
-
- {{#if view.stylesheetActive}}{{aceEditor content=stylesheet mode="scss"}}{{/if}}
- {{#if view.headerActive}}{{aceEditor content=header mode="html"}}{{/if}}
- {{#if view.footerActive}}{{aceEditor content=footer mode="html"}}{{/if}}
- {{#if view.mobileStylesheetActive}}{{aceEditor content=mobile_stylesheet mode="scss"}}{{/if}}
- {{#if view.mobileHeaderActive}}{{aceEditor content=mobile_header mode="html"}}{{/if}}
- {{#if view.mobileFooterActive}}{{aceEditor content=mobile_footer mode="html"}}{{/if}}
-
+ {{#if view.stylesheetActive}}{{aceEditor content=selectedItem.stylesheet mode="scss"}}{{/if}}
+ {{#if view.headerActive}}{{aceEditor content=selectedItem.header mode="html"}}{{/if}}
+ {{#if view.footerActive}}{{aceEditor content=selectedItem.footer mode="html"}}{{/if}}
+ {{#if view.mobileStylesheetActive}}{{aceEditor content=selectedItem.mobile_stylesheet mode="scss"}}{{/if}}
+ {{#if view.mobileHeaderActive}}{{aceEditor content=selectedItem.mobile_header mode="html"}}{{/if}}
+ {{#if view.mobileFooterActive}}{{aceEditor content=selectedItem.mobile_footer mode="html"}}{{/if}}
+
-
{{i18n 'admin.customize.override_default'}} {{view Ember.Checkbox checkedBinding="selectedItem.override_default_style"}}
-
{{i18n 'admin.customize.enabled'}} {{view Ember.Checkbox checkedBinding="selectedItem.enabled"}}
+
{{i18n 'admin.customize.override_default'}} {{input type="checkbox" checked=selectedItem.override_default_style}}
+
{{i18n 'admin.customize.enabled'}} {{input type="checkbox" checked=selectedItem.enabled}}
{{#unless selectedItem.changed}}
{{i18n 'admin.customize.preview'}}
|
diff --git a/app/assets/javascripts/admin/templates/dashboard.hbs b/app/assets/javascripts/admin/templates/dashboard.hbs
index 4438803dc..039ed9844 100644
--- a/app/assets/javascripts/admin/templates/dashboard.hbs
+++ b/app/assets/javascripts/admin/templates/dashboard.hbs
@@ -176,12 +176,12 @@
{{#unless loading}}
- {{#each top_traffic_sources.data}}
+ {{#each s in top_traffic_sources.data}}
- {{domain}} |
- {{num_clicks}} |
- {{num_topics}} |
+ {{s.domain}} |
+ {{s.num_clicks}} |
+ {{s.num_topics}} |
{{/each}}
@@ -199,12 +199,12 @@
{{#unless loading}}
- {{#each top_referrers.data}}
+ {{#each r in top_referrers.data}}
- {{#link-to 'adminUser' this}}{{unbound username}}{{/link-to}} |
- {{num_clicks}} |
- {{num_topics}} |
+ {{#link-to 'adminUser' r}}{{unbound r.username}}{{/link-to}} |
+ {{r.num_clicks}} |
+ {{r.num_topics}} |
{{/each}}
diff --git a/app/assets/javascripts/admin/templates/email_all.hbs b/app/assets/javascripts/admin/templates/email_all.hbs
index 505d152e1..c2c6d261a 100644
--- a/app/assets/javascripts/admin/templates/email_all.hbs
+++ b/app/assets/javascripts/admin/templates/email_all.hbs
@@ -17,20 +17,20 @@
{{text-field value=filter.skipped_reason placeholderKey="admin.email.logs.filters.skipped_reason_placeholder"}} |
- {{#each model}}
+ {{#each l in model}}
- {{format-date created_at}} |
+ {{format-date l.created_at}} |
- {{#if user}}
- {{#link-to 'adminUser' user}}{{avatar user imageSize="tiny"}}{{/link-to}}
- {{#link-to 'adminUser' user}}{{user.username}}{{/link-to}}
+ {{#if l.user}}
+ {{#link-to 'adminUser' l.user}}{{avatar l.user imageSize="tiny"}}{{/link-to}}
+ {{#link-to 'adminUser' l.user}}{{l.user.username}}{{/link-to}}
{{else}}
—
{{/if}}
|
- {{to_address}} |
- {{email_type}} |
- {{skipped_reason}} |
+ {{l.to_address}} |
+ {{l.email_type}} |
+ {{l.skipped_reason}} |
{{else}}
{{i18n 'admin.email.logs.none'}} |
diff --git a/app/assets/javascripts/admin/templates/email_index.hbs b/app/assets/javascripts/admin/templates/email_index.hbs
index 89efb036a..8837ac619 100644
--- a/app/assets/javascripts/admin/templates/email_index.hbs
+++ b/app/assets/javascripts/admin/templates/email_index.hbs
@@ -1,13 +1,13 @@
{{i18n 'admin.email.delivery_method'}} |
- {{model.delivery_method}} |
+ {{delivery_method}} |
- {{#each model.settings}}
+ {{#each s in model.settings}}
- {{name}} |
- {{value}} |
+ {{s.name}} |
+ {{s.value}} |
{{/each}}
diff --git a/app/assets/javascripts/admin/templates/email_sent.hbs b/app/assets/javascripts/admin/templates/email_sent.hbs
index 6c61a7799..0287492f1 100644
--- a/app/assets/javascripts/admin/templates/email_sent.hbs
+++ b/app/assets/javascripts/admin/templates/email_sent.hbs
@@ -17,20 +17,20 @@
{{text-field value=filter.reply_key placeholderKey="admin.email.logs.filters.reply_key_placeholder"}} |
- {{#each model}}
+ {{#each l in model}}
- {{format-date created_at}} |
+ {{format-date l.created_at}} |
- {{#if user}}
- {{#link-to 'adminUser' user}}{{avatar user imageSize="tiny"}}{{/link-to}}
- {{#link-to 'adminUser' user}}{{user.username}}{{/link-to}}
+ {{#if l.user}}
+ {{#link-to 'adminUser' l.user}}{{avatar l.user imageSize="tiny"}}{{/link-to}}
+ {{#link-to 'adminUser' l.user}}{{l.user.username}}{{/link-to}}
{{else}}
—
{{/if}}
|
- {{to_address}} |
- {{email_type}} |
- {{reply_key}} |
+ {{l.to_address}} |
+ {{l.email_type}} |
+ {{l.reply_key}} |
{{else}}
{{i18n 'admin.email.logs.none'}} |
diff --git a/app/assets/javascripts/admin/templates/email_skipped.hbs b/app/assets/javascripts/admin/templates/email_skipped.hbs
index 505d152e1..c2c6d261a 100644
--- a/app/assets/javascripts/admin/templates/email_skipped.hbs
+++ b/app/assets/javascripts/admin/templates/email_skipped.hbs
@@ -17,20 +17,20 @@
{{text-field value=filter.skipped_reason placeholderKey="admin.email.logs.filters.skipped_reason_placeholder"}} |
- {{#each model}}
+ {{#each l in model}}
- {{format-date created_at}} |
+ {{format-date l.created_at}} |
- {{#if user}}
- {{#link-to 'adminUser' user}}{{avatar user imageSize="tiny"}}{{/link-to}}
- {{#link-to 'adminUser' user}}{{user.username}}{{/link-to}}
+ {{#if l.user}}
+ {{#link-to 'adminUser' l.user}}{{avatar l.user imageSize="tiny"}}{{/link-to}}
+ {{#link-to 'adminUser' l.user}}{{l.user.username}}{{/link-to}}
{{else}}
—
{{/if}}
|
- {{to_address}} |
- {{email_type}} |
- {{skipped_reason}} |
+ {{l.to_address}} |
+ {{l.email_type}} |
+ {{l.skipped_reason}} |
{{else}}
{{i18n 'admin.email.logs.none'}} |
diff --git a/app/assets/javascripts/admin/templates/flags-list.hbs b/app/assets/javascripts/admin/templates/flags-list.hbs
index e6079d565..0993610aa 100644
--- a/app/assets/javascripts/admin/templates/flags-list.hbs
+++ b/app/assets/javascripts/admin/templates/flags-list.hbs
@@ -42,20 +42,20 @@
- {{#each flaggedPost.flaggers}}
+ {{#each flagger in flaggedPost.flaggers}}
- {{#link-to 'adminUser' user}}
- {{avatar user imageSize="small"}}
+ {{#link-to 'adminUser' flagger.user}}
+ {{avatar flagger.user imageSize="small"}}
{{/link-to}}
|
- {{#link-to 'adminUser' user}}
- {{user.username}}
+ {{#link-to 'adminUser' flagger.user}}
+ {{flagger.user.username}}
{{/link-to}}
- {{format-age flaggedAt}}
+ {{format-age flagger.flaggedAt}}
- {{flagType}}
+ {{flagger.flagType}}
|
{{/each}}
@@ -67,17 +67,17 @@
{{#if adminOldFlagsView}}
- {{#each flaggedPost.flaggers}}
+ {{#each flagger in flaggedPost.flaggers}}
- {{#link-to 'adminUser' disposedBy}}
- {{avatar disposedBy imageSize="small"}}
+ {{#link-to 'adminUser' flagger.disposedBy}}
+ {{avatar flagger.disposedBy imageSize="small"}}
{{/link-to}}
|
- {{format-age disposedAt}}
- {{{dispositionIcon}}}
- {{#if tookAction}}
+ {{format-age flagger.disposedAt}}
+ {{{flagger.dispositionIcon}}}
+ {{#if flagger.tookAction}}
{{/if}}
|
@@ -101,24 +101,24 @@
{{/if}}
- {{#each flaggedPost.conversations}}
+ {{#each c in flaggedPost.conversations}}
|
- {{#if response}}
+ {{#if c.response}}
- {{#link-to 'adminUser' response.user}}{{avatar response.user imageSize="small"}}{{/link-to}} {{{response.excerpt}}}
+ {{#link-to 'adminUser' c.response.user}}{{avatar c.response.user imageSize="small"}}{{/link-to}} {{{c.response.excerpt}}}
- {{#if reply}}
+ {{#if c.reply}}
- {{#link-to 'adminUser' reply.user}}{{avatar reply.user imageSize="small"}}{{/link-to}} {{{reply.excerpt}}}
- {{#if hasMore}}
- {{i18n 'admin.flags.more'}}
+ {{#link-to 'adminUser' c.reply.user}}{{avatar c.reply.user imageSize="small"}}{{/link-to}} {{{c.reply.excerpt}}}
+ {{#if c.hasMore}}
+ {{i18n 'admin.flags.more'}}
{{/if}}
{{/if}}
-
+
{{/if}}
diff --git a/app/assets/javascripts/admin/templates/modal/admin_edit_badge_groupings.hbs b/app/assets/javascripts/admin/templates/modal/admin_edit_badge_groupings.hbs
index 8c32447c2..1dd273e0f 100644
--- a/app/assets/javascripts/admin/templates/modal/admin_edit_badge_groupings.hbs
+++ b/app/assets/javascripts/admin/templates/modal/admin_edit_badge_groupings.hbs
@@ -1,22 +1,21 @@
-
- {{#each workingCopy}}
- -
- {{#if editing}}
- {{input value=this.name}}
-
- {{else}}
- {{this.name}}
- {{/if}}
-
-
-
-
-
-
-
+ {{#each wc in workingCopy}}
+ -
+ {{#if wc.editing}}
+ {{input value=wc.name}}
+
+ {{else}}
+ {{wc.name}}
+ {{/if}}
+
+
+
+
+
+
+
{{/each}}
diff --git a/app/assets/javascripts/admin/templates/reports/trust_levels_report.hbs b/app/assets/javascripts/admin/templates/reports/trust_levels_report.hbs
index b2ab0c92e..cedde2f3a 100644
--- a/app/assets/javascripts/admin/templates/reports/trust_levels_report.hbs
+++ b/app/assets/javascripts/admin/templates/reports/trust_levels_report.hbs
@@ -1,8 +1,8 @@
{{title}} |
- {{#link-to 'adminUsersList.show' 'newuser'}}{{valueAtTrustLevel data 0}}{{/link-to}} |
- {{#link-to 'adminUsersList.show' 'basic'}}{{valueAtTrustLevel data 1}}{{/link-to}} |
- {{#link-to 'adminUsersList.show' 'regular'}}{{valueAtTrustLevel data 2}}{{/link-to}} |
- {{#link-to 'adminUsersList.show' 'leader'}}{{valueAtTrustLevel data 3}}{{/link-to}} |
- {{#link-to 'adminUsersList.show' 'elder'}}{{valueAtTrustLevel data 4}}{{/link-to}} |
+ {{#link-to 'adminUsersList.show' 'newuser'}}{{value-at-tl data level="0"}}{{/link-to}} |
+ {{#link-to 'adminUsersList.show' 'basic'}}{{value-at-tl data level="1"}}{{/link-to}} |
+ {{#link-to 'adminUsersList.show' 'regular'}}{{value-at-tl data level="2"}}{{/link-to}} |
+ {{#link-to 'adminUsersList.show' 'leader'}}{{value-at-tl data level="3"}}{{/link-to}} |
+ {{#link-to 'adminUsersList.show' 'elder'}}{{value-at-tl data level="4"}}{{/link-to}} |
diff --git a/app/assets/javascripts/admin/templates/site_settings/setting_bool.hbs b/app/assets/javascripts/admin/templates/site_settings/setting_bool.hbs
index 2e1a5c997..84f07ce4c 100644
--- a/app/assets/javascripts/admin/templates/site_settings/setting_bool.hbs
+++ b/app/assets/javascripts/admin/templates/site_settings/setting_bool.hbs
@@ -3,7 +3,7 @@
diff --git a/app/assets/javascripts/admin/templates/site_text.hbs b/app/assets/javascripts/admin/templates/site_text.hbs
index de38984b2..25924f99e 100644
--- a/app/assets/javascripts/admin/templates/site_text.hbs
+++ b/app/assets/javascripts/admin/templates/site_text.hbs
@@ -1,9 +1,9 @@
- {{#each model}}
+ {{#each c in model}}
-
- {{#link-to 'adminSiteText.edit' text_type}}{{title}}{{/link-to}}
+ {{#link-to 'adminSiteText.edit' c.text_type}}{{c.title}}{{/link-to}}
{{/each}}
diff --git a/app/assets/javascripts/admin/templates/user_index.hbs b/app/assets/javascripts/admin/templates/user_index.hbs
index a3725767e..6c85c515e 100644
--- a/app/assets/javascripts/admin/templates/user_index.hbs
+++ b/app/assets/javascripts/admin/templates/user_index.hbs
@@ -140,12 +140,12 @@
{{#if userFields}}
- {{#each userFields}}
+ {{#each uf in userFields}}
- {{name}}
+ {{uf.name}}
- {{#if value}}
- {{value}}
+ {{#if uf.value}}
+ {{uf.value}}
{{else}}
—
{{/if}}
diff --git a/app/assets/javascripts/admin/templates/user_tl3_requirements.hbs b/app/assets/javascripts/admin/templates/user_tl3_requirements.hbs
index b1086cc84..db924081e 100644
--- a/app/assets/javascripts/admin/templates/user_tl3_requirements.hbs
+++ b/app/assets/javascripts/admin/templates/user_tl3_requirements.hbs
@@ -12,94 +12,92 @@
{{i18n 'admin.user.tl3_requirements.table_title'}}
- {{#with tl3Requirements}}
-
-
-
- |
- |
- {{i18n 'admin.user.tl3_requirements.value_heading'}} |
- {{i18n 'admin.user.tl3_requirements.requirement_heading'}} |
-
-
-
-
- {{i18n 'admin.user.tl3_requirements.visits'}} |
- |
-
- {{days_visited_percent}}% ({{days_visited}} / {{time_period}} {{i18n 'admin.user.tl3_requirements.days'}})
- |
- {{min_days_visited_percent}}% |
-
-
- {{i18n 'admin.user.tl3_requirements.topics_replied_to'}} |
- |
- {{num_topics_replied_to}} |
- {{min_topics_replied_to}} |
-
-
- {{i18n 'admin.user.tl3_requirements.topics_viewed'}} |
- |
- {{topics_viewed}} |
- {{min_topics_viewed}} |
-
-
- {{i18n 'admin.user.tl3_requirements.topics_viewed_all_time'}} |
- |
- {{topics_viewed_all_time}} |
- {{min_topics_viewed_all_time}} |
-
-
- {{i18n 'admin.user.tl3_requirements.posts_read'}} |
- |
- {{posts_read}} |
- {{min_posts_read}} |
-
-
- {{i18n 'admin.user.tl3_requirements.posts_read_all_time'}} |
- |
- {{posts_read_all_time}} |
- {{min_posts_read_all_time}} |
-
-
- {{i18n 'admin.user.tl3_requirements.flagged_posts'}} |
- |
- {{num_flagged_posts}} |
- {{i18n 'max_of_count' count=max_flagged_posts}} |
-
-
- {{i18n 'admin.user.tl3_requirements.flagged_by_users'}} |
- |
- {{num_flagged_by_users}} |
- {{i18n 'max_of_count' count=max_flagged_by_users}} |
-
-
- {{i18n 'admin.user.tl3_requirements.likes_given'}} |
- |
- {{num_likes_given}} |
- {{min_likes_given}} |
-
-
- {{i18n 'admin.user.tl3_requirements.likes_received'}} |
- |
- {{num_likes_received}} |
- {{min_likes_received}} |
-
-
- {{i18n 'admin.user.tl3_requirements.likes_received_days'}} |
- |
- {{num_likes_received_days}} |
- {{min_likes_received_days}} |
-
-
- {{i18n 'admin.user.tl3_requirements.likes_received_users'}} |
- |
- {{num_likes_received_users}} |
- {{min_likes_received_users}} |
-
-
-
- {{/with}}
+
+
+
+ |
+ |
+ {{i18n 'admin.user.tl3_requirements.value_heading'}} |
+ {{i18n 'admin.user.tl3_requirements.requirement_heading'}} |
+
+
+
+
+ {{i18n 'admin.user.tl3_requirements.visits'}} |
+ |
+
+ {{tl3Requirements.days_visited_percent}}% ({{tl3Requirements.days_visited}} / {{tl3Requirements.time_period}} {{i18n 'admin.user.tl3_requirements.days'}})
+ |
+ {{tl3Requirements.min_days_visited_percent}}% |
+
+
+ {{i18n 'admin.user.tl3_requirements.topics_replied_to'}} |
+ |
+ {{tl3Requirements.num_topics_replied_to}} |
+ {{tl3Requirements.min_topics_replied_to}} |
+
+
+ {{i18n 'admin.user.tl3_requirements.topics_viewed'}} |
+ |
+ {{tl3Requirements.topics_viewed}} |
+ {{tl3Requirements.min_topics_viewed}} |
+
+
+ {{i18n 'admin.user.tl3_requirements.topics_viewed_all_time'}} |
+ |
+ {{tl3Requirements.topics_viewed_all_time}} |
+ {{tl3Requirements.min_topics_viewed_all_time}} |
+
+
+ {{i18n 'admin.user.tl3_requirements.posts_read'}} |
+ |
+ {{tl3Requirements.posts_read}} |
+ {{tl3Requirements.min_posts_read}} |
+
+
+ {{i18n 'admin.user.tl3_requirements.posts_read_all_time'}} |
+ |
+ {{tl3Requirements.posts_read_all_time}} |
+ {{tl3Requirements.min_posts_read_all_time}} |
+
+
+ {{i18n 'admin.user.tl3_requirements.flagged_posts'}} |
+ |
+ {{tl3Requirements.num_flagged_posts}} |
+ {{i18n 'max_of_count' count=tl3Requirements.max_flagged_posts}} |
+
+
+ {{i18n 'admin.user.tl3_requirements.flagged_by_users'}} |
+ |
+ {{tl3Requirements.num_flagged_by_users}} |
+ {{i18n 'max_of_count' count=tl3Requirements.max_flagged_by_users}} |
+
+
+ {{i18n 'admin.user.tl3_requirements.likes_given'}} |
+ |
+ {{tl3Requirements.num_likes_given}} |
+ {{tl3Requirements.min_likes_given}} |
+
+
+ {{i18n 'admin.user.tl3_requirements.likes_received'}} |
+ |
+ {{tl3Requirements.num_likes_received}} |
+ {{tl3Requirements.min_likes_received}} |
+
+
+ {{i18n 'admin.user.tl3_requirements.likes_received_days'}} |
+ |
+ {{tl3Requirements.num_likes_received_days}} |
+ {{tl3Requirements.min_likes_received_days}} |
+
+
+ {{i18n 'admin.user.tl3_requirements.likes_received_users'}} |
+ |
+ {{tl3Requirements.num_likes_received_users}} |
+ {{tl3Requirements.min_likes_received_users}} |
+
+
+
diff --git a/app/assets/javascripts/discourse/helpers/i18n.js.es6 b/app/assets/javascripts/discourse/helpers/i18n.js.es6
index 7ca36e81c..b19eae3b5 100644
--- a/app/assets/javascripts/discourse/helpers/i18n.js.es6
+++ b/app/assets/javascripts/discourse/helpers/i18n.js.es6
@@ -1,24 +1,5 @@
import registerUnbound from 'discourse/helpers/register-unbound';
-var oldI18nlookup = I18n.lookup;
-I18n.lookup = function(scope, options) {
- return oldI18nlookup.apply(this, ["js." + scope, options]);
-};
-
-// Default format for storage units
-var oldI18ntoHumanSize = I18n.toHumanSize;
-I18n.toHumanSize = function(number, options) {
- options = options || {};
- options.format = I18n.t("number.human.storage_units.format");
- return oldI18ntoHumanSize.apply(this, [number, options]);
-};
-
-if (Ember.EXTEND_PROTOTYPES) {
- String.prototype.i18n = function(options) {
- return I18n.t(String(this), options);
- };
-}
-
registerUnbound('i18n', function(key, params) {
return I18n.t(key, params);
});
diff --git a/app/assets/javascripts/discourse/initializers/load-all-helpers.js.es6 b/app/assets/javascripts/discourse/initializers/load-all-helpers.js.es6
index a3b71a1cd..f9ec0d71c 100644
--- a/app/assets/javascripts/discourse/initializers/load-all-helpers.js.es6
+++ b/app/assets/javascripts/discourse/initializers/load-all-helpers.js.es6
@@ -9,4 +9,3 @@ export default {
});
}
};
-
diff --git a/app/assets/javascripts/discourse/templates/about.hbs b/app/assets/javascripts/discourse/templates/about.hbs
index 030eb611a..3edbdc650 100644
--- a/app/assets/javascripts/discourse/templates/about.hbs
+++ b/app/assets/javascripts/discourse/templates/about.hbs
@@ -8,8 +8,8 @@
|
- {{#each other_accounts}}
+ {{#each a in other_accounts}}
- {{#link-to "adminUser" this}}{{avatar this usernamePath="user.username" imageSize="small"}} {{username}}{{/link-to}} |
- {{trustLevel.id}} |
- {{time_read}} |
- {{topics_entered}} |
- {{post_count}} |
+ {{#link-to "adminUser" a}}{{avatar a usernamePath="user.username" imageSize="small"}} {{username}}{{/link-to}} |
+ {{a.trustLevel.id}} |
+ {{a.time_read}} |
+ {{a.topics_entered}} |
+ {{a.post_count}} |
{{/each}}
diff --git a/app/assets/javascripts/discourse/templates/components/login-buttons.hbs b/app/assets/javascripts/discourse/templates/components/login-buttons.hbs
index a47488643..d6efea186 100644
--- a/app/assets/javascripts/discourse/templates/components/login-buttons.hbs
+++ b/app/assets/javascripts/discourse/templates/components/login-buttons.hbs
@@ -1,3 +1,3 @@
-{{#each buttons}}
-
+{{#each b in buttons}}
+
{{/each}}
diff --git a/app/assets/javascripts/discourse/templates/components/private-message-map.hbs b/app/assets/javascripts/discourse/templates/components/private-message-map.hbs
index 87551bc80..fa82b721e 100644
--- a/app/assets/javascripts/discourse/templates/components/private-message-map.hbs
+++ b/app/assets/javascripts/discourse/templates/components/private-message-map.hbs
@@ -1,20 +1,20 @@
{{i18n 'private_message_info.title'}}
- {{#each details.allowed_groups}}
+ {{#each ag in details.allowed_groups}}
- #{{unbound name}}
+ #{{unbound ag.name}}
{{/each}}
- {{#each details.allowed_users}}
+ {{#each au in details.allowed_users}}
- {{#link-to 'user' this}}
- {{avatar this imageSize="small"}}
+ {{#link-to 'user' au}}
+ {{avatar au imageSize="small"}}
{{/link-to}}
- {{#link-to 'user' this}}
- {{unbound username}}
+ {{#link-to 'user' au}}
+ {{unbound au.username}}
{{/link-to}}
- {{#if details.can_remove_allowed_users}}
-
+ {{#if au.details.can_remove_allowed_users}}
+
{{/if}}
{{/each}}
diff --git a/app/assets/javascripts/discourse/templates/components/top-period-buttons.hbs b/app/assets/javascripts/discourse/templates/components/top-period-buttons.hbs
index 718880e71..4b6c2ffab 100644
--- a/app/assets/javascripts/discourse/templates/components/top-period-buttons.hbs
+++ b/app/assets/javascripts/discourse/templates/components/top-period-buttons.hbs
@@ -1,3 +1,3 @@
-{{#each period.availablePeriods}}
- {{top-title-button period=this}}
+{{#each p in period.availablePeriods}}
+ {{top-title-button period=p}}
{{/each}}
diff --git a/app/assets/javascripts/discourse/templates/components/top-period-chooser.hbs b/app/assets/javascripts/discourse/templates/components/top-period-chooser.hbs
index 31a0107a8..53181310a 100644
--- a/app/assets/javascripts/discourse/templates/components/top-period-chooser.hbs
+++ b/app/assets/javascripts/discourse/templates/components/top-period-chooser.hbs
@@ -3,8 +3,8 @@
diff --git a/app/assets/javascripts/discourse/templates/composer/similar_topics.hbs b/app/assets/javascripts/discourse/templates/composer/similar_topics.hbs
index 06806e275..1ab70a4f9 100644
--- a/app/assets/javascripts/discourse/templates/composer/similar_topics.hbs
+++ b/app/assets/javascripts/discourse/templates/composer/similar_topics.hbs
@@ -2,7 +2,7 @@
{{i18n 'composer.similar_topics'}}
- {{#each similarTopics}}
- - {{topic-link this}} ({{{i18n 'topic.filters.n_posts' count="posts_count"}}})
+ {{#each t in similarTopics}}
+ - {{topic-link t}} ({{{i18n 'topic.filters.n_posts' count=t.posts_count}}})
{{/each}}
diff --git a/app/assets/javascripts/discourse/templates/group/index.hbs b/app/assets/javascripts/discourse/templates/group/index.hbs
index bf99e6fdd..a58cf2819 100644
--- a/app/assets/javascripts/discourse/templates/group/index.hbs
+++ b/app/assets/javascripts/discourse/templates/group/index.hbs
@@ -1,21 +1,21 @@
- {{#each model itemController="group/post"}}
+ {{#each p in model itemController="group/post"}}
- {{#link-to 'user' user class="avatar-link"}} {{avatar user imageSize="large" extraClasses="actor" ignoreTitle="true"}} {{/link-to}}
- {{format-date created_at leaveAgo="true"}}
+ {{#link-to 'user' p.user class="avatar-link"}} {{avatar p.user imageSize="large" extraClasses="actor" ignoreTitle="true"}} {{/link-to}}
+ {{format-date p.created_at leaveAgo="true"}}
- {{unbound title}}
+ {{unbound p.title}}
- {{category-link category}}
- {{#if byName}}
+ {{category-link p.category}}
+ {{#if p.byName}}
- {{unbound byName}}
+ {{unbound p.byName}}
{{/if}}
- {{{unbound cooked}}}
+ {{{unbound p.cooked}}}
{{/each}}
diff --git a/app/assets/javascripts/discourse/templates/group/members.hbs b/app/assets/javascripts/discourse/templates/group/members.hbs
index 5a2fd360e..6ac492ea3 100644
--- a/app/assets/javascripts/discourse/templates/group/members.hbs
+++ b/app/assets/javascripts/discourse/templates/group/members.hbs
@@ -3,17 +3,17 @@
{{i18n 'last_seen'}} |
- {{#each model}}
+ {{#each m in model}}
- {{avatar this imageSize="large"}}
+ {{avatar m imageSize="large"}}
|
- {{#link-to 'user' this}}{{username}}{{/link-to}}
- {{name}}
+ {{#link-to 'user' m}}{{m.username}}{{/link-to}}
+ {{m.name}}
|
- {{bound-date last_seen_at}}
+ {{bound-date m.last_seen_at}}
|
diff --git a/app/assets/javascripts/discourse/templates/mobile/components/basic-topic-list.hbs b/app/assets/javascripts/discourse/templates/mobile/components/basic-topic-list.hbs
index 74b5bc069..e06212bfc 100644
--- a/app/assets/javascripts/discourse/templates/mobile/components/basic-topic-list.hbs
+++ b/app/assets/javascripts/discourse/templates/mobile/components/basic-topic-list.hbs
@@ -2,43 +2,43 @@
{{#if topics}}
- {{#each topics}}
-
+ {{#each t in topics}}
+
- {{topic-status topic=this}}
- {{topic-link this}}
- {{topic-post-badges unread=unread
- newPosts=new_posts
- unseen=unseen
- url=lastUnreadUrl}}
+ {{topic-status topic=t}}
+ {{topic-link t}}
+ {{topic-post-badges unread=t.unread
+ newPosts=t.new_posts
+ unseen=t.unseen
+ url=t.lastUnreadUrl}}
- {{#if hasExcerpt}}
+ {{#if t.hasExcerpt}}
{{/if}}
- {{posts-count-column topic=this tagName="div" class="num posts" action="clickedPosts"}}
- {{raw "list/activity-column" topic=this tagName="div" class="num activity last"}}
+ {{posts-count-column topic=t tagName="div" class="num posts" action="clickedPosts"}}
+ {{raw "list/activity-column" topic=t tagName="div" class="num activity last"}}
{{#unless controller.hideCategory}}
- {{category-link category showParent=true}}
+ {{category-link t.category showParent=true}}
{{/unless}}
{{#if controller.showParticipants}}
- {{#each participants}}
-
+ {{#each p in participants}}
+
{{/each}}
{{/if}}
@@ -46,12 +46,12 @@
|
- {{/each}}
-
-
- {{else}}
-
- {{i18n 'choose_topic.none_found'}}
+ {{/each}}
+
+
+ {{else}}
+
+ {{i18n 'choose_topic.none_found'}}
{{/if}}
{{/loading-spinner}}
diff --git a/app/assets/javascripts/discourse/templates/mobile/discovery/categories.hbs b/app/assets/javascripts/discourse/templates/mobile/discovery/categories.hbs
index 789368925..793d36120 100644
--- a/app/assets/javascripts/discourse/templates/mobile/discovery/categories.hbs
+++ b/app/assets/javascripts/discourse/templates/mobile/discovery/categories.hbs
@@ -1,51 +1,51 @@
-{{#each categories}}
+{{#each c in categories}}
- {{category-link this allowUncategorized=true}}
+ {{category-link c allowUncategorized=true}}
|
- {{#if description_excerpt}}
+ {{#if c.description_excerpt}}
- {{{description_excerpt}}}
+ {{{c.description_excerpt}}}
|
{{/if}}
- {{#each topics}}
-
+ {{#each t in c.topics}}
+
- {{topic-status topic=this}}
- {{topic-link this}}
+ {{topic-status topic=t}}
+ {{topic-link t}}
- {{topic-post-badges unread=unread newPosts=new_posts unseen=unseen url=lastUnreadUrl}}
- {{#if hasExcerpt}}
+ {{topic-post-badges unread=t.unread newPosts=t.new_posts unseen=t.unseen url=t.lastUnreadUrl}}
+ {{#if t.hasExcerpt}}
{{/if}}
|
- {{number posts_count}} |
- {{{format-age created_at}}} |
+ {{number t.posts_count}} |
+ {{{format-age t.created_at}}} |
{{/each}}
- {{#if subcategories}}
+ {{#if c.subcategories}}
- {{#each subcategory in subcategories}}
+ {{#each subcategory in c.subcategories}}
{{category-link subcategory showParent=true}}
{{/each}}
@@ -55,12 +55,12 @@
|
diff --git a/app/assets/javascripts/discourse/templates/mobile/list/topic_list_item.hbs b/app/assets/javascripts/discourse/templates/mobile/list/topic_list_item.hbs
index 5db0015b9..6a3aa39bb 100644
--- a/app/assets/javascripts/discourse/templates/mobile/list/topic_list_item.hbs
+++ b/app/assets/javascripts/discourse/templates/mobile/list/topic_list_item.hbs
@@ -30,7 +30,7 @@
{{posts-count-column topic=this tagName="div" class="num posts" action="showTopicEntrance"}}
diff --git a/app/assets/javascripts/discourse/templates/modal/create-account.hbs b/app/assets/javascripts/discourse/templates/modal/create-account.hbs
index d51d8ea6a..a9ecf7a7e 100644
--- a/app/assets/javascripts/discourse/templates/modal/create-account.hbs
+++ b/app/assets/javascripts/discourse/templates/modal/create-account.hbs
@@ -74,8 +74,8 @@
{{#if userFields}}
- {{#each userFields}}
- {{user-field field=field value=value}}
+ {{#each f in userFields}}
+ {{user-field field=f.field value=value}}
{{/each}}
{{/if}}
diff --git a/app/assets/javascripts/discourse/templates/modal/edit-category-general.hbs b/app/assets/javascripts/discourse/templates/modal/edit-category-general.hbs
index f1a5ebd60..096441c01 100644
--- a/app/assets/javascripts/discourse/templates/modal/edit-category-general.hbs
+++ b/app/assets/javascripts/discourse/templates/modal/edit-category-general.hbs
@@ -8,8 +8,8 @@
{{#if subCategories}}
- {{#each subCategories}}
- {{category-badge this}}
+ {{#each s in subCategories}}
+ {{category-badge s}}
{{/each}}
{{else}}
diff --git a/app/assets/javascripts/discourse/templates/modal/edit-category-security.hbs b/app/assets/javascripts/discourse/templates/modal/edit-category-security.hbs
index 0b45f2055..ef70bd291 100644
--- a/app/assets/javascripts/discourse/templates/modal/edit-category-security.hbs
+++ b/app/assets/javascripts/discourse/templates/modal/edit-category-security.hbs
@@ -1,19 +1,19 @@
- {{#each permissions}}
+ {{#each p in permissions}}
-
- {{group_name}}
+ {{p.group_name}}
{{{i18n "category.can"}}}
- {{permission.description}}
+ {{p.permission.description}}
{{#if controller.editingPermissions}}
-
+
{{/if}}
{{/each}}
{{#if controller.editingPermissions}}
- {{view Ember.Select content=availableGroups value=selectedGroup}}
- {{view Ember.Select class="permission-selector" optionValuePath="content.id" optionLabelPath="content.description" content=availablePermissions value=selectedPermission}}
+ {{view 'select' content=availableGroups value=selectedGroup}}
+ {{view 'select' class="permission-selector" optionValuePath="content.id" optionLabelPath="content.description" content=availablePermissions value=selectedPermission}}
{{else}}
diff --git a/app/assets/javascripts/discourse/templates/modal/option_boolean.hbs b/app/assets/javascripts/discourse/templates/modal/option_boolean.hbs
index 2cb9c1384..0b04b45d2 100644
--- a/app/assets/javascripts/discourse/templates/modal/option_boolean.hbs
+++ b/app/assets/javascripts/discourse/templates/modal/option_boolean.hbs
@@ -1,5 +1,5 @@
diff --git a/app/assets/javascripts/discourse/templates/modal/split_topic.hbs b/app/assets/javascripts/discourse/templates/modal/split_topic.hbs
index 820b7f0d1..ff72aab89 100644
--- a/app/assets/javascripts/discourse/templates/modal/split_topic.hbs
+++ b/app/assets/javascripts/discourse/templates/modal/split_topic.hbs
@@ -5,7 +5,7 @@
{{/if}}
- {{{i18n 'topic.split_topic.instructions' count="selectedPostsCount"}}}
+ {{{i18n 'topic.split_topic.instructions' count=selectedPostsCount}}}
|