Commit 9c95fa6f authored by Fernando Verdugo's avatar Fernando Verdugo Committed by frankiejol
Browse files

Feature/1419 chatwoot (#1430)

feat(frontend): Custom widget embed

Issue #1419
parent ca0f89d3
......@@ -37,4 +37,7 @@
,file => '/var/log/ravada/rvd_front.log'
,level => 'debug'
}
# Insert widget in /js/custom/insert_here_widget.js
# this widget embed js in templates/bootstrap/scripts.html.ep
,widget => ''
};
......@@ -66,6 +66,7 @@ my $CONFIG_FRONT = plugin Config => { default => {
,monitoring => 0
,fallback => 0
,guide_custom => ''
,widget => ''
,admin => {
hide_clones => 15
,autostart => 0
......@@ -155,6 +156,7 @@ hook before_routes => sub {
,check_netdata => 0
,guide => $CONFIG_FRONT->{guide}
,host => $host
,widget => $CONFIG_FRONT->{widget}
);
$USER = _logged_in($c);
......
......@@ -62,3 +62,7 @@
document.getElementById("spinn"+iD).style.display="none";
}
</script>
% if ( $widget ) {
<script src="<%= $widget %>"></script>
% }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment