4teamwork/ftw.subsite — pull request #34 by jone (2013-09-12 11:42:42+00:00)
Title: Hide banner viewlet from folder_contents when root_only option enabled.

If the option `root_only` is enabled, the banner viewlet should only be visible on the default view of the navigation root.

Currently it shows up on every view called on the navigation root (folder_contents, sharing, sitemap, etc).
With this change it no longer shows up when on non-default views if `root_only` is enabled.

When `root_only` is not enabled, the banner viewlet is usually placed differently in the theme (e.g. smaller banners) and is visible on every context, thats why it also should show up on views such as folder_contents.

@Tschanzt could you take a look at this change and merge if it is ok?