DEV: Add top level `<div>` when using Ember CLI (#12878)
Eventually we'd like to remove this but it makes our Ember CLI build consistent with the non-ember version.
This commit is contained in:
parent
7423943ffe
commit
bd23e793b7
|
@ -0,0 +1,10 @@
|
||||||
|
import Component from "@ember/component";
|
||||||
|
|
||||||
|
let componentArgs = { tagName: "div" };
|
||||||
|
|
||||||
|
// TODO: Once we've moved to Ember CLI completely we can remove this.
|
||||||
|
if (!Ember.FEATURES.EMBER_GLIMMER_SET_COMPONENT_TEMPLATE) {
|
||||||
|
componentArgs = { tagName: "" };
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Component.extend(componentArgs);
|
|
@ -1,42 +1,44 @@
|
||||||
{{d-document}}
|
{{#discourse-root}}
|
||||||
{{plugin-outlet name="above-site-header" tagName=""}}
|
{{d-document}}
|
||||||
{{site-header canSignUp=canSignUp
|
{{plugin-outlet name="above-site-header" tagName=""}}
|
||||||
showCreateAccount=(route-action "showCreateAccount")
|
{{site-header canSignUp=canSignUp
|
||||||
showLogin=(route-action "showLogin")
|
showCreateAccount=(route-action "showCreateAccount")
|
||||||
showKeyboard=(route-action "showKeyboardShortcutsHelp")
|
showLogin=(route-action "showLogin")
|
||||||
toggleMobileView=(route-action "toggleMobileView")
|
showKeyboard=(route-action "showKeyboardShortcutsHelp")
|
||||||
toggleAnonymous=(route-action "toggleAnonymous")
|
toggleMobileView=(route-action "toggleMobileView")
|
||||||
logout=(route-action "logout")}}
|
toggleAnonymous=(route-action "toggleAnonymous")
|
||||||
{{software-update-prompt id="software-update-prompt"}}
|
logout=(route-action "logout")}}
|
||||||
|
{{software-update-prompt id="software-update-prompt"}}
|
||||||
|
|
||||||
{{plugin-outlet name="below-site-header" tagName="" args=(hash currentPath=router._router.currentPath)}}
|
{{plugin-outlet name="below-site-header" tagName="" args=(hash currentPath=router._router.currentPath)}}
|
||||||
|
|
||||||
<div id="main-outlet" class="wrap" role="main">
|
<div id="main-outlet" class="wrap" role="main">
|
||||||
{{plugin-outlet name="above-main-container" tagName=""}}
|
{{plugin-outlet name="above-main-container" tagName=""}}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{{#if showTop}}
|
{{#if showTop}}
|
||||||
{{custom-html name="top"}}
|
{{custom-html name="top"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{notification-consent-banner}}
|
{{notification-consent-banner}}
|
||||||
{{pwa-install-banner}}
|
{{pwa-install-banner}}
|
||||||
{{global-notice}}
|
{{global-notice}}
|
||||||
{{create-topics-notice}}
|
{{create-topics-notice}}
|
||||||
{{plugin-outlet name="top-notices" tagName="" args=(hash currentPath=router._router.currentPath)}}
|
{{plugin-outlet name="top-notices" tagName="" args=(hash currentPath=router._router.currentPath)}}
|
||||||
|
</div>
|
||||||
|
{{outlet}}
|
||||||
|
{{outlet "user-card"}}
|
||||||
</div>
|
</div>
|
||||||
{{outlet}}
|
|
||||||
{{outlet "user-card"}}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{plugin-outlet name="above-footer" tagName="" args=(hash showFooter=showFooter)}}
|
{{plugin-outlet name="above-footer" tagName="" args=(hash showFooter=showFooter)}}
|
||||||
{{#if showFooter}}
|
{{#if showFooter}}
|
||||||
{{custom-html name="footer" triggerAppEvent="true"}}
|
{{custom-html name="footer" triggerAppEvent="true"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{plugin-outlet name="below-footer" tagName="" args=(hash showFooter=showFooter)}}
|
{{plugin-outlet name="below-footer" tagName="" args=(hash showFooter=showFooter)}}
|
||||||
|
|
||||||
{{outlet "modal"}}
|
{{outlet "modal"}}
|
||||||
{{topic-entrance}}
|
{{topic-entrance}}
|
||||||
{{outlet "composer"}}
|
{{outlet "composer"}}
|
||||||
|
|
||||||
{{#if showFooterNav}}
|
{{#if showFooterNav}}
|
||||||
{{footer-nav}}
|
{{footer-nav}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{/discourse-root}}
|
||||||
|
|
Loading…
Reference in New Issue