<% // 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; %> 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, etc. */ %> <% } /* 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: */ %>
<% /* The homepage-header on the homepage has a white fleet logo */ %> <% if (isHomepage) { %> Fleet logo <% } else { %> Fleet logo <% } %>
<%- 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) */ %> <% /* 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.) */ %>