notice_tmpl.js 804 B

12345678910111213141516
  1. // TODO: This file was created by bulk-decaffeinate.
  2. // Sanity-check the conversion and remove this comment.
  3. /*
  4. * decaffeinate suggestions:
  5. * DS102: Remove unnecessary code created because of implicit returns
  6. * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
  7. */
  8. const notice = (text) => `<p class="_notice-text">${text}</p>`;
  9. app.templates.singleDocNotice = (doc) =>
  10. notice(` You're browsing the ${doc.fullName} documentation. To browse all docs, go to
  11. <a href="//${app.config.production_host}" target="_top">${app.config.production_host}</a> (or press <code>esc</code>). `);
  12. app.templates.disabledDocNotice = () =>
  13. notice(` <strong>This documentation is disabled.</strong>
  14. To enable it, go to <a href="/settings" class="_notice-link">Preferences</a>. `);