diff --git a/app/assets/javascripts/app/controllers/knowledge_base/public_menu_manager.coffee b/app/assets/javascripts/app/controllers/knowledge_base/public_menu_manager.coffee index 879497e6d..34941450c 100644 --- a/app/assets/javascripts/app/controllers/knowledge_base/public_menu_manager.coffee +++ b/app/assets/javascripts/app/controllers/knowledge_base/public_menu_manager.coffee @@ -27,11 +27,13 @@ class App.KnowledgeBasePublicMenuManager extends App.Controller { headline: 'Header menu', identifier: 'header', - color: kb.color_header + color: kb.color_header, + color_link: kb.color_header_link }, { headline: 'Footer menu', - identifier: 'footer' + identifier: 'footer', + color_link: 'hsl(207,12%,50%)' } ] diff --git a/app/assets/javascripts/app/models/knowledge_base.coffee b/app/assets/javascripts/app/models/knowledge_base.coffee index a48f55bef..8bf326ba7 100644 --- a/app/assets/javascripts/app/models/knowledge_base.coffee +++ b/app/assets/javascripts/app/models/knowledge_base.coffee @@ -1,5 +1,5 @@ class App.KnowledgeBase extends App.Model - @configure 'KnowledgeBase', 'iconset', 'color_highlight', 'color_header', 'translation_ids', 'locale_ids', 'homepage_layout', 'category_layout', 'custom_address' + @configure 'KnowledgeBase', 'iconset', 'color_highlight', 'color_header', 'color_header_link', 'translation_ids', 'locale_ids', 'homepage_layout', 'category_layout', 'custom_address' @extend Spine.Model.Ajax @extend App.KnowledgeBaseActions @url: @apiPath + '/knowledge_bases' @@ -148,6 +148,17 @@ class App.KnowledgeBase extends App.Model display: false horizontal: true shown: true + }, { + name: 'color_header_link' + display: 'Header Link Color' + tag: 'color' + style: 'block' + null: false + screen: + admin_style_color_header_link: + display: false + horizontal: true + shown: true # Layout picker is disabled in V1 #}, { # name: 'homepage_layout' diff --git a/app/assets/javascripts/app/views/knowledge_base/new_modal.coffee b/app/assets/javascripts/app/views/knowledge_base/new_modal.coffee index 3dbb91fd8..bfd1905db 100644 --- a/app/assets/javascripts/app/views/knowledge_base/new_modal.coffee +++ b/app/assets/javascripts/app/views/knowledge_base/new_modal.coffee @@ -26,11 +26,12 @@ class App.KnowledgeBaseNewModal extends App.ControllerModal App.UiElement[attribute.tag].prepareParams?(attribute, dom, params) applyDefaults: (params) -> - params['iconset'] = 'FontAwesome' - params['color_highlight'] = '#38ae6a' - params['color_header'] = '#f9fafb' - params['homepage_layout'] = 'grid' - params['category_layout'] = 'grid' + params['iconset'] = 'FontAwesome' + params['color_highlight'] = '#38ae6a' + params['color_header'] = '#f9fafb' + params['color_header_link'] = 'hsl(206,8%,50%)' + params['homepage_layout'] = 'grid' + params['category_layout'] = 'grid' onSubmit: (e) -> params = @formParams(@el) diff --git a/app/assets/javascripts/app/views/knowledge_base/public_menu_manager.jst.eco b/app/assets/javascripts/app/views/knowledge_base/public_menu_manager.jst.eco index 3ccb6b454..7922cf902 100644 --- a/app/assets/javascripts/app/views/knowledge_base/public_menu_manager.jst.eco +++ b/app/assets/javascripts/app/views/knowledge_base/public_menu_manager.jst.eco @@ -14,7 +14,7 @@