mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
* FEATURE: Incorporate PWA install prompt into Discourse UI This is mainly done so Discourse forums stop nagging people to install on the very first visits to a website. We will prevent the native install "mini-info" bar from ever appearing, capture the event that pops with it, and delay it until the user meets our criteria, which currently is trust_level 1. If the event happens and the user meets our criteria we show a Discourse alert banner proposing the install to the user. Dismissal of the banner is recorded so the user ins't bothered anymore on the same device. Co-Authored-By: Gerhard Schlager <mail@gerhard-schlager.at> Co-Authored-By: Joffrey JAFFEUX <j.jaffeux@gmail.com>
41 lines
1.3 KiB
Handlebars
41 lines
1.3 KiB
Handlebars
{{plugin-outlet name="above-site-header"}}
|
|
{{site-header canSignUp=canSignUp
|
|
showCreateAccount=(route-action "showCreateAccount")
|
|
showLogin=(route-action "showLogin")
|
|
showKeyboard=(route-action "showKeyboardShortcutsHelp")
|
|
toggleMobileView=(route-action "toggleMobileView")
|
|
toggleAnonymous=(route-action "toggleAnonymous")
|
|
logout=(route-action "logout")}}
|
|
|
|
{{plugin-outlet name="below-site-header" args=(hash currentPath=router._router.currentPath)}}
|
|
|
|
<div id="main-outlet" class="wrap">
|
|
{{plugin-outlet name="above-main-container"}}
|
|
<div class="container">
|
|
{{#if showTop}}
|
|
{{custom-html name="top"}}
|
|
{{/if}}
|
|
{{notification-consent-banner}}
|
|
{{pwa-install-banner}}
|
|
{{global-notice}}
|
|
{{create-topics-notice}}
|
|
{{plugin-outlet name="top-notices" args=(hash currentPath=router._router.currentPath)}}
|
|
</div>
|
|
{{outlet}}
|
|
{{outlet "user-card"}}
|
|
</div>
|
|
|
|
{{plugin-outlet name="above-footer" args=(hash showFooter=showFooter)}}
|
|
{{#if showFooter}}
|
|
{{custom-html name="footer" triggerAppEvent="true"}}
|
|
{{/if}}
|
|
{{plugin-outlet name="below-footer" args=(hash showFooter=showFooter)}}
|
|
|
|
{{outlet "modal"}}
|
|
{{topic-entrance}}
|
|
{{outlet "composer"}}
|
|
|
|
{{#if showFooterNav}}
|
|
{{footer-nav}}
|
|
{{/if}}
|