wizard.html.erb 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <html>
  2. <head>
  3. <%= discourse_stylesheet_link_tag :wizard, theme_id: nil %>
  4. <%= stylesheet_link_tag "wizard_custom", media: "all", "data-turbolinks-track" => "reload" %>
  5. <%= stylesheet_link_tag "wizard_composer", media: "all", "data-turbolinks-track" => "reload" %>
  6. <%= stylesheet_link_tag "wizard_variables", media: "all", "data-turbolinks-track" => "reload" %>
  7. <%= stylesheet_link_tag "wizard_custom_mobile", media: "all", "data-turbolinks-track" => "reload" if mobile_view?%>
  8. <%- if theme_ids %>
  9. <%= discourse_stylesheet_link_tag (mobile_view? ? :mobile_theme : :desktop_theme) %>
  10. <%- end %>
  11. <%= preload_script "ember_jquery" %>
  12. <%= preload_script "wizard-vendor" %>
  13. <%= preload_script "wizard-application" %>
  14. <%= preload_script "wizard-custom-lib" %>
  15. <%= preload_script "wizard-custom" %>
  16. <%= preload_script "wizard-plugin" %>
  17. <%= preload_script "pretty-text-bundle" %>
  18. <%= preload_script "locales/#{I18n.locale}" %>
  19. <%= render partial: "common/special_font_face" %>
  20. <script src="<%= Discourse.base_uri %>/extra-locales/wizard"></script>
  21. <%= csrf_meta_tags %>
  22. <%- unless customization_disabled? %>
  23. <%= raw theme_lookup("head_tag") %>
  24. <%- end %>
  25. <%= server_plugin_outlet "custom_wizard" %>
  26. <meta name="discourse_theme_ids" content="<%= theme_ids&.join(",") %>">
  27. <meta name="discourse-base-uri" content="<%= Discourse.base_uri %>">
  28. <%= render partial: "layouts/head" %>
  29. <title><%= wizard_page_title %></title>
  30. </head>
  31. <body class='custom-wizard'>
  32. <div id='custom-wizard-main'></div>
  33. <%- unless customization_disabled? %>
  34. <%= raw theme_lookup("body_tag") %>
  35. <%- end %>
  36. <script>
  37. (function() {
  38. var wizard = require('discourse/plugins/discourse-custom-wizard/wizard/custom-wizard').default.create();
  39. wizard.start();
  40. })();
  41. </script>
  42. </body>
  43. </html>