0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-08 15:55:38 +08:00
discourse/app/views/common/_discourse_publish_stylesheet.html.erb
David Taylor 9aa52af4c9
UX: Drop legacy mobile-mode site settings (#40226)
Viewport-based mobile mode has been the default since September, and the
feedback has been overwhelmingly positive. This is now the only
supported method.

`enable_mobile_theme` is an extremely old hidden setting, which doesn't
make sense at all now that almost all Discourse design is
viewport-based.

This commit cleans up both, and all their associated logic/tests. On the
server-side, we standardize any remaining mobile-user-agent logic to be
described as `mobile_device?` instead of `mobile_view?`, so that it has
parity with the client-side `capabilities` service.
2026-05-26 09:23:13 +01:00

14 lines
592 B
Text
Vendored

<%= discourse_color_scheme_stylesheets %>
<%= discourse_stylesheet_link_tag 'publish', theme_id: nil %>
<%- if theme_id.present? %>
<%= discourse_stylesheet_link_tag(:common_theme, supports_rtl: true) %>
<%= discourse_stylesheet_link_tag(mobile_device? ? :mobile_theme : :desktop_theme) %>
<%- end %>
<%- Discourse.find_plugin_css_assets(include_official: allow_plugins?, include_unofficial: allow_third_party_plugins?, mobile_view: mobile_device?, desktop_view: !mobile_device?, request: request, rtl: rtl?).each do |file| %>
<%= discourse_stylesheet_link_tag(file) %>
<%- end %>