mirror of
https://github.com/lingble/chatwoot.git
synced 2025-12-16 10:47:01 +00:00
feat: Updates branding logo and name in public portal footer (#8745)
- Use white-label settings for Chatwoot Help Center Co-authored-by: Sojan <sojan@pepalo.com>
This commit is contained in:
committed by
GitHub
parent
0ac015ce7a
commit
c29a9ad062
@@ -1,6 +1,7 @@
|
|||||||
class Public::Api::V1::Portals::BaseController < PublicController
|
class Public::Api::V1::Portals::BaseController < PublicController
|
||||||
before_action :show_plain_layout
|
before_action :show_plain_layout
|
||||||
before_action :set_color_scheme
|
before_action :set_color_scheme
|
||||||
|
before_action :set_global_config
|
||||||
around_action :set_locale
|
around_action :set_locale
|
||||||
after_action :allow_iframe_requests
|
after_action :allow_iframe_requests
|
||||||
|
|
||||||
@@ -60,4 +61,8 @@ class Public::Api::V1::Portals::BaseController < PublicController
|
|||||||
portal
|
portal
|
||||||
render 'public/api/v1/portals/error/404', status: :not_found
|
render 'public/api/v1/portals/error/404', status: :not_found
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def set_global_config
|
||||||
|
@global_config = GlobalConfig.get('LOGO_THUMBNAIL', 'BRAND_NAME', 'BRAND_URL')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<svg width="16" height="16" viewBox="0 0 512 512" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
||||||
<title>woot-log</title>
|
|
||||||
<desc>Created with Sketch.</desc>
|
|
||||||
<g id="Logo" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
||||||
<g id="woot-log" fill-rule="nonzero">
|
|
||||||
<circle id="Oval" fill="#47A7F6" cx="256" cy="256" r="256"></circle>
|
|
||||||
<path d="M362.807947,368.807947 L244.122956,368.807947 C178.699407,368.807947 125.456954,315.561812 125.456954,250.12177 C125.456954,184.703089 178.699407,131.456954 244.124143,131.456954 C309.565494,131.456954 362.807947,184.703089 362.807947,250.12177 L362.807947,368.807947 Z" id="Fill-1" stroke="#FFFFFF" stroke-width="6" fill="#FFFFFF"></path>
|
|
||||||
</g>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 846 B |
@@ -2,9 +2,17 @@
|
|||||||
<footer class="pt-16 pb-8 flex flex-col items-center justify-center">
|
<footer class="pt-16 pb-8 flex flex-col items-center justify-center">
|
||||||
<div class="mx-auto max-w-2xl text-center py-2">
|
<div class="mx-auto max-w-2xl text-center py-2">
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<%= render partial: 'icons/chatwoot-logo' %>
|
|
||||||
|
<img
|
||||||
|
class="w-4 h-4"
|
||||||
|
alt="<%= @global_config['BRAND_NAME'] %>"
|
||||||
|
src="<%= @global_config['LOGO_THUMBNAIL'] %>"
|
||||||
|
/>
|
||||||
<p class="text-slate-700 dark:text-slate-300 text-sm font-medium text-center">
|
<p class="text-slate-700 dark:text-slate-300 text-sm font-medium text-center">
|
||||||
<%= I18n.t('public_portal.footer.made_with') %> <a class="hover:underline" href="https://www.chatwoot.com" target="_blank" rel="noopener noreferrer nofoll/ow">Chatwoot</a>
|
<%= I18n.t('public_portal.footer.made_with') %>
|
||||||
|
|
||||||
|
<a class="hover:underline" href="<%= @global_config['BRAND_URL'] %>" target="_blank" rel="noopener noreferrer nofoll/ow"><%= @global_config['BRAND_NAME'] %></a>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user