diff --git a/assets/javascripts/templates/sidebar_tmpl.coffee b/assets/javascripts/templates/sidebar_tmpl.coffee index ba44e9f6..cfaf940c 100644 --- a/assets/javascripts/templates/sidebar_tmpl.coffee +++ b/assets/javascripts/templates/sidebar_tmpl.coffee @@ -18,10 +18,11 @@ templates.sidebarResult = (entry) -> """#{$.escape entry.name}""" templates.sidebarNoResults = -> - info = if app.isSingleDoc() or app.disabledDocs.isEmpty() then '' else """ - Note: documentations must be enabled to appear in the search. - """ - """
No results. #{info}
""" + html = """
No results.
""" + html += """ +
Note: documentations must be enabled to appear in the search.
+ """ unless app.isSingleDoc() or app.disabledDocs.isEmpty() + html templates.sidebarPageLink = (count) -> """Show more\u2026 (#{count})""" @@ -39,7 +40,10 @@ templates.sidebarDisabledList = (options) -> templates.sidebarDisabled = (options) -> """
Disabled (#{options.count})
""" -templates.sidebarVote = 'Vote for new documentation' +templates.sidebarPickerNote = """ +
Tip: for faster and better search results, select only the docs you need.
+ Vote for new documentation + """ sidebarFooter = (html) -> """""" diff --git a/assets/javascripts/views/sidebar/doc_picker.coffee b/assets/javascripts/views/sidebar/doc_picker.coffee index 38416b85..5b87c7ec 100644 --- a/assets/javascripts/views/sidebar/doc_picker.coffee +++ b/assets/javascripts/views/sidebar/doc_picker.coffee @@ -28,7 +28,7 @@ class app.views.DocPicker extends app.View render: -> @html @tmpl('sidebarLabel', app.docs.all(), checked: true) + @tmpl('sidebarLabel', app.disabledDocs.all()) + - @tmpl('sidebarVote') + + @tmpl('sidebarPickerNote') + @tmpl('sidebarSave') @refreshElements() diff --git a/assets/stylesheets/components/_sidebar.scss b/assets/stylesheets/components/_sidebar.scss index 0b5c7aa4..59b3d32e 100644 --- a/assets/stylesheets/components/_sidebar.scss +++ b/assets/stylesheets/components/_sidebar.scss @@ -214,19 +214,20 @@ } } -._list-noresults { - padding: .5rem .75rem; +// +// List note +// + +._list-note { + margin: .5rem .75rem; line-height: 1.25rem; font-size: .8125rem; color: $textColorLight; + + & + & { margin-top: .25rem; } } -._list-noresults-note { - display: block; - margin-top: .25rem; -} - -._list-noresults-link { cursor: pointer; } +._list-note-link { cursor: pointer; } // // List hover clone