Skip to content

Commit

Permalink
Merge pull request #365 from tungleduyxyz/plugins_show
Browse files Browse the repository at this point in the history
Add a config to for additional header
  • Loading branch information
pierre authored Jul 23, 2023
2 parents b853d9a + 57a40f2 commit 367aade
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/kaui/layouts/kaui_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

<title>Kaui</title>
<%= stylesheet_link_tag 'kaui_application', :media => 'all' %>
<% unless Kaui.additional_headers_partial.nil? %>
<%= render :partial => Kaui.additional_headers_partial %>
<% end %>
<%= csrf_meta_tags %>

Expand Down
1 change: 1 addition & 0 deletions lib/kaui.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module Kaui
mattr_accessor :gateways_urls

mattr_accessor :disable_sign_up_link
mattr_accessor :additional_headers_partial

self.home_path = -> { Kaui::Engine.routes.url_helpers.home_path }
self.tenant_home_path = -> { Kaui::Engine.routes.url_helpers.tenants_path }
Expand Down

0 comments on commit 367aade

Please sign in to comment.