mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 07:23:40 +08:00
9fad71809c
Why is this change required? When a site is newly setup and a user has just been created, the categories and tags sections are hidden from the user. This happens because the admin has not configured the `default_navigation_menu_categories` or `default_navigation_menu_tags` site settings. When the categories and tags sections are hidden from the user, the sidebar looks extremely bare and does not create a good experience. What is being change? In this commit, we're changing the logic such that the site's top categories and tags are displayed if the user does not have any categories/tags configured in each respective section. The only regression introduced in this change is that the categories and tags section can no longer be hidden as a result. However, we have plans to address this in the future by allowing sidebar sections to be configured to be hidden by each individual user. |
||
---|---|---|
.. | ||
cloud/cloud66 | ||
environments | ||
initializers | ||
locales | ||
application.rb | ||
boot.rb | ||
cdn.yml.sample | ||
database.yml | ||
deploy.rb.sample | ||
dev_defaults.yml | ||
discourse_defaults.conf | ||
discourse.config.sample | ||
discourse.pill.sample | ||
environment.rb | ||
logrotate.conf | ||
multisite.yml.production-sample | ||
nginx.global.conf | ||
nginx.sample.conf | ||
projections.json | ||
puma.rb | ||
routes.rb | ||
sidekiq.yml | ||
site_settings.yml | ||
spring.rb | ||
thin.yml.sample | ||
unicorn_launcher | ||
unicorn_upstart.conf | ||
unicorn.conf.rb |