<% // 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 certain view locals exist that are commonly used in this layout.ejs file. This ensures we // don't have to do `typeof` checks below. var me; var isHomepage; %> <%= typeof pageTitleForMeta !== 'undefined' ? pageTitleForMeta : 'Fleet for osquery | Open source device management' %> <% /* 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') { %> <% /* Google Analytics, Google Tag Manager, Snitcher etc. */ %> <%/* Meta pixel code */%> <%/* Snitcher analytics code */%> <% } /* 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: */ %>
<%- body %> <%/* Note: footer is hidden until the page is loaded. See «script» tag at the bottom of this file. */%>
<% /* 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) */ %> <% /* Cookie consent banner */ %> <% /* Chat (Papercups) */ %> <%/* 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.) */ %> <% /* Keep footer hidden until the document is ready (prevents flicker that is especially unattractive on mobile) */ %>