mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 13:39:36 -06:00
d22df7731d
- adds another :mobile-flag to register_assets - adds test for plugin registering of assets - load plugins when on desktop and plugins_mobile when on mobile
18 lines
530 B
Plaintext
18 lines
530 B
Plaintext
<%- unless SiteCustomization.override_default_style(session[:preview_style]) %>
|
|
<% if mobile_view? %>
|
|
<%= stylesheet_link_tag "mobile" %>
|
|
<%= stylesheet_link_tag "plugins_mobile" %>
|
|
<% else %>
|
|
<%= stylesheet_link_tag "desktop" %>
|
|
<%= stylesheet_link_tag "plugins" %>
|
|
<% end %>
|
|
<%- end %>
|
|
|
|
<%- if staff? %>
|
|
<%= stylesheet_link_tag "admin"%>
|
|
<%- end %>
|
|
|
|
<%- unless customization_disabled? %>
|
|
<%= SiteCustomization.custom_stylesheet(session[:preview_style], mobile_view? ? :mobile : :desktop) %>
|
|
<%- end %>
|