From 8bcfea3b0d943510bdd053c63b924c8e9a23c74f Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Wed, 3 May 2017 11:41:01 -0400 Subject: [PATCH] new outlets for plugins --- app/assets/javascripts/discourse/templates/preferences.hbs | 1 + .../javascripts/discourse/templates/preferences/account.hbs | 2 ++ app/assets/javascripts/discourse/templates/preferences/apps.hbs | 2 ++ .../javascripts/discourse/templates/preferences/categories.hbs | 2 ++ .../javascripts/discourse/templates/preferences/emails.hbs | 2 ++ .../javascripts/discourse/templates/preferences/interface.hbs | 2 ++ .../discourse/templates/preferences/notifications.hbs | 2 ++ .../javascripts/discourse/templates/preferences/profile.hbs | 2 ++ app/assets/javascripts/discourse/templates/preferences/tags.hbs | 2 ++ 9 files changed, 17 insertions(+) diff --git a/app/assets/javascripts/discourse/templates/preferences.hbs b/app/assets/javascripts/discourse/templates/preferences.hbs index 818f1b9886e..14efd012bdd 100644 --- a/app/assets/javascripts/discourse/templates/preferences.hbs +++ b/app/assets/javascripts/discourse/templates/preferences.hbs @@ -12,6 +12,7 @@ {{#if model.userApiKeys}} {{/if}} + {{plugin-outlet name="user-preferences-nav"}} {{/mobile-nav}} {{/d-section}} diff --git a/app/assets/javascripts/discourse/templates/preferences/account.hbs b/app/assets/javascripts/discourse/templates/preferences/account.hbs index fa081a06a33..03515e116de 100644 --- a/app/assets/javascripts/discourse/templates/preferences/account.hbs +++ b/app/assets/javascripts/discourse/templates/preferences/account.hbs @@ -49,6 +49,8 @@ {{/if}} +{{plugin-outlet name="user-preferences-account"}} +
{{#if model.canDeleteAccount}} diff --git a/app/assets/javascripts/discourse/templates/preferences/apps.hbs b/app/assets/javascripts/discourse/templates/preferences/apps.hbs index 3bd448c5bc0..1d18e69d0f1 100644 --- a/app/assets/javascripts/discourse/templates/preferences/apps.hbs +++ b/app/assets/javascripts/discourse/templates/preferences/apps.hbs @@ -23,3 +23,5 @@ {{/if}} + +{{plugin-outlet name="user-preferences-apps"}} diff --git a/app/assets/javascripts/discourse/templates/preferences/categories.hbs b/app/assets/javascripts/discourse/templates/preferences/categories.hbs index 99043e5d62b..65629626862 100644 --- a/app/assets/javascripts/discourse/templates/preferences/categories.hbs +++ b/app/assets/javascripts/discourse/templates/preferences/categories.hbs @@ -37,6 +37,8 @@ +{{plugin-outlet name="user-preferences-categories"}} +
{{plugin-outlet name="user-custom-controls" args=(hash model=model)}} diff --git a/app/assets/javascripts/discourse/templates/preferences/emails.hbs b/app/assets/javascripts/discourse/templates/preferences/emails.hbs index 8c151f50793..375bb5124dc 100644 --- a/app/assets/javascripts/discourse/templates/preferences/emails.hbs +++ b/app/assets/javascripts/discourse/templates/preferences/emails.hbs @@ -45,6 +45,8 @@ {{/unless}} +{{plugin-outlet name="user-preferences-emails"}} +
{{plugin-outlet name="user-custom-controls" args=(hash model=model)}} diff --git a/app/assets/javascripts/discourse/templates/preferences/interface.hbs b/app/assets/javascripts/discourse/templates/preferences/interface.hbs index 0b38b17ec27..9e5f9b10702 100644 --- a/app/assets/javascripts/discourse/templates/preferences/interface.hbs +++ b/app/assets/javascripts/discourse/templates/preferences/interface.hbs @@ -36,6 +36,8 @@ {{/if}} +{{plugin-outlet name="user-preferences-interface"}} +
{{plugin-outlet name="user-custom-controls" args=(hash model=model)}} diff --git a/app/assets/javascripts/discourse/templates/preferences/notifications.hbs b/app/assets/javascripts/discourse/templates/preferences/notifications.hbs index 3feaaa40f1e..6c81046e279 100644 --- a/app/assets/javascripts/discourse/templates/preferences/notifications.hbs +++ b/app/assets/javascripts/discourse/templates/preferences/notifications.hbs @@ -35,6 +35,8 @@
{{i18n 'user.muted_users_instructions'}}
+{{plugin-outlet name="user-preferences-notifications"}} +
{{plugin-outlet name="user-custom-controls" args=(hash model=model)}} diff --git a/app/assets/javascripts/discourse/templates/preferences/profile.hbs b/app/assets/javascripts/discourse/templates/preferences/profile.hbs index 1f9bb65cfd5..bc57e60fdad 100644 --- a/app/assets/javascripts/discourse/templates/preferences/profile.hbs +++ b/app/assets/javascripts/discourse/templates/preferences/profile.hbs @@ -97,6 +97,8 @@ +{{plugin-outlet name="user-preferences-profile"}} + {{plugin-outlet name="user-custom-preferences" args=(hash model=model)}}
diff --git a/app/assets/javascripts/discourse/templates/preferences/tags.hbs b/app/assets/javascripts/discourse/templates/preferences/tags.hbs index 76a12a4245e..e2e9507b5bd 100644 --- a/app/assets/javascripts/discourse/templates/preferences/tags.hbs +++ b/app/assets/javascripts/discourse/templates/preferences/tags.hbs @@ -29,6 +29,8 @@ +{{plugin-outlet name="user-preferences-tags"}} +
{{plugin-outlet name="user-custom-controls" args=(hash model=model)}}