Просмотр исходного кода

Add head and body tags to wizard html

Angus McLeod 6 лет назад
Родитель
Сommit
4830766649
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      views/layouts/wizard.html.erb

+ 8 - 0
views/layouts/wizard.html.erb

@@ -20,6 +20,10 @@
     <script src="<%= Discourse.base_uri %>/extra-locales/wizard"></script>
     <%= csrf_meta_tags %>
 
+    <%- unless customization_disabled? %>
+      <%= raw theme_lookup("head_tag") %>
+    <%- end %>
+
     <%= server_plugin_outlet "custom_wizard" %>
 
     <meta name="discourse_theme_key" content="<%= theme_key %>">
@@ -32,6 +36,10 @@
   <body class='custom-wizard'>
     <div id='custom-wizard-main'></div>
 
+    <%- unless customization_disabled? %>
+      <%= raw theme_lookup("body_tag") %>
+    <%- end %>
+
     <script>
       (function() {
         var wizard = require('discourse/plugins/discourse-custom-wizard/wizard/custom-wizard').default.create();