2022-07-05 00:23:09 +08:00
|
|
|
<%= discourse_preload_color_scheme_stylesheets %>
|
|
|
|
|
|
|
|
<%- if rtl? %>
|
|
|
|
<%= discourse_stylesheet_preload_tag(mobile_view? ? :mobile_rtl : :desktop_rtl) %>
|
|
|
|
<%- else %>
|
|
|
|
<%= discourse_stylesheet_preload_tag(mobile_view? ? :mobile : :desktop) %>
|
|
|
|
<%- end %>
|
|
|
|
|
|
|
|
<%- if staff? %>
|
2023-06-01 10:27:11 +08:00
|
|
|
<%- if rtl? %>
|
|
|
|
<%= discourse_stylesheet_preload_tag(:admin_rtl) %>
|
|
|
|
<%- else %>
|
|
|
|
<%= discourse_stylesheet_preload_tag(:admin) %>
|
|
|
|
<%- end %>
|
2022-07-05 00:23:09 +08:00
|
|
|
<%- end %>
|
|
|
|
|
|
|
|
<%- if admin? %>
|
2023-06-01 10:27:11 +08:00
|
|
|
<%- if rtl? %>
|
|
|
|
<%= discourse_stylesheet_preload_tag(:wizard_rtl) %>
|
|
|
|
<%- else %>
|
|
|
|
<%= discourse_stylesheet_preload_tag(:wizard) %>
|
|
|
|
<%- end %>
|
2022-07-05 00:23:09 +08:00
|
|
|
<%- end %>
|
|
|
|
|
2023-06-01 10:27:11 +08:00
|
|
|
<%- Discourse.find_plugin_css_assets(include_official: allow_plugins?, include_unofficial: allow_third_party_plugins?, mobile_view: mobile_view?, desktop_view: !mobile_view?, request: request, rtl: rtl?).each do |file| %>
|
2022-07-05 00:23:09 +08:00
|
|
|
<%= discourse_stylesheet_preload_tag(file) %>
|
|
|
|
<%- end %>
|
|
|
|
|
|
|
|
<%- if theme_id.present? %>
|
|
|
|
<%= discourse_stylesheet_preload_tag(mobile_view? ? :mobile_theme : :desktop_theme) %>
|
|
|
|
<%- end %>
|