mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 00:29:18 +08:00
71ff3417a6
Separate mobile templates are a pattern we're moving away from. They are not supported by Ember, and make things more difficult to develop/test. The differences between the mobile and desktop templates for `discovery/topics` are very minimal, so they can be easily integrated. The only feature missing from the main template was the new 'list header controls' UI. This commit introduces that to the main template inside an `mobileView` conditional. Key changes in behavior, many of which could be considered bug fixes, are: - Mobile will now include 'redirected reason' - Mobile will now include shared drafts - Mobile will now include before-topic-list and after-topic-list Plugin Outlets - Mobile will now have a `<div class="show-more">` wrapper around the 'new or updated' UI, to match desktop. This does not seem to cause any visual change. Mobile-specific template overrides of `discovery/topics` will continue to function as before - this should not be a breaking change for any themes/plugins. Mobile-specific templates for the topic list and topic-list-item remain in place. |
||
---|---|---|
.. | ||
images | ||
javascripts | ||
stylesheets |