<% if(typeof me === 'undefined') { // In case we're displaying the 404 or 500 page and relevant code in the "custom" hook was not able to run, // we make sure `me` exists. This ensures we don't have to do `typeof` checks below. var me = undefined; } %> NEW_APP_NAME <% /* Viewport tag for sensible mobile support */ %> <% /* Script tags should normally be included further down the page- but any scripts that load fonts (e.g. Fontawesome ≥v5) are special exceptions to the rule. (Include them up here along with any hard-coded «link» tags for Typekit, Google Fonts, etc. - above the «body» to prevent the page flickering when fonts load.) */ %> <% /* Certain scripts, normally analytics tools like Google Tag Manager and Google Analytics, should only be included in production: */ if (sails.config.environment === 'production') { %> <% } /* Otherwise, any such scripts are excluded, and we instead inject a robots/noindex meta tag to help prevent any unwanted visits from search engines. */ else { %> <% } %> <% /* Stylesheets ======================== Stylesheets can be hard-coded as «link» tags, automatically injected by the asset pipeline between "STYLES" and "STYLES END", or both. (https://sailsjs.com/docs/concepts/assets/task-automation) */ %> <% /* Auto-injected «link» tags: */ %>
<% if(me&&me.emailChangeCandidate) { %>
<% } else if(me&&me.emailStatus === 'unconfirmed') { %>
<% } %> <%- body %>
<% /* Client-side JavaScript ======================== Scripts can be hard-coded as «script» tags, automatically injected by the asset pipeline between "SCRIPTS" and "SCRIPTS END", or both. (https://sailsjs.com/docs/concepts/assets/task-automation) */ %> <%/* Stripe.js */%> <% /* Delete the global `self` to help avoid client-side bugs. (see https://developer.mozilla.org/en-US/docs/Web/API/Window/self) */ %> <%/* bowser.js (for browser detection) -- included inline to avoid issues with minification that could affect the unsupported browser overlay */%> <% /* Auto-injected «script» tags: */ %> <% /* Display an overlay if the current browser is not supported. (Relies on `bowser`, which is loaded inline above.) */ %>