Commit 97c9bd8e authored by fv3rdugo's avatar fv3rdugo
Browse files

[#595_guide] Disabled guide by default

Enable in /etc/rvd_front.conf
parent dc481719
......@@ -11,6 +11,7 @@
,group => 'ravada'
,secrets => ['changeme1','changeme2']
,login_custom => ''
,guide => ''
,guide_custom => ''
,session_timeout => 5*60
,session_timeout_admin => 15*60
......
......@@ -48,6 +48,7 @@ my $CONFIG_FRONT = plugin Config => { default => {
,login_header => 'Welcome'
,login_message => ''
,secrets => ['changeme0']
,guide => 0
,login_custom => ''
,guide_custom => ''
,admin => {
......@@ -116,6 +117,7 @@ hook before_routes => sub {
,_logged_in => undef
,_anonymous => undef
,_user => undef
,guide => $CONFIG_FRONT->{guide}
);
return access_denied($c)
......@@ -794,6 +796,7 @@ sub login {
,error => \@error
,login_header => $CONFIG_FRONT->{login_header}
,login_message => $CONFIG_FRONT->{login_message}
,guide => $CONFIG_FRONT->{guide}
);
}
......
......@@ -27,7 +27,7 @@
<div class="panel panel-default">
<div class="panel-heading">
<h2><%=l 'Choose a Machine to Start' %></h2>
% if ( $public_bases ) {
% if ( $guide and $public_bases ) {
<a class="btn btn-large btn-success" href="javascript:void(0);" ng-click="startIntro();"><%= l 'Step-by-step guide' %></a>
% }
% if ($user->is_admin && $public_bases && $private_bases) {
......
Markdown is supported
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