<%= discourse_color_scheme_stylesheets %> <%- if @has_test_bundle && !@suggested_themes %> <%= preload_script "vendor" %> <%= preload_script "test-support" %> <%= preload_script "discourse" %> <%= preload_script "test" %> <%= preload_script "locales/#{I18n.locale}" %> <%= preload_script "admin" %> <%- Discourse.find_plugin_js_assets(include_disabled: true).each do |file| %> <%= preload_script file %> <%- end %> <%= preload_script "test-site-settings" %> <%= theme_translations_lookup %> <%= theme_js_lookup %> <%= theme_lookup("head_tag") %> <%= theme_tests %> <%= tag.meta id: 'data-discourse-setup', data: client_side_setup_data %> <%= discourse_stylesheet_link_tag(:desktop, theme_id: nil) %> <%- else %> <%- end %> <%- if params['testem'] %> <%- end %> <%- if !@has_test_bundle %> This is a production installation of Discourse, and cannot be used for theme testing. For more information, see this guide. <% elsif @suggested_themes %>

Theme QUnit Test Runner

<%- if @suggested_themes.size == 0 %>

Cannot find any theme tests.

<%- else %>

Select a theme/component:

<%- @suggested_themes.each do |(id, name)| %>

<%= link_to name, theme_qunit_path(id: id) %>

<%- end %> <%- end %> <% else %> <%= preload_script "scripts/discourse-test-listen-boot" %> <%= preload_script "scripts/discourse-boot" %> <%- end %> <%= discourse_stylesheet_link_tag("qunit-custom", theme_id: nil) %>