Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
97c9bd8e
Commit
97c9bd8e
authored
Mar 08, 2018
by
fv3rdugo
Browse files
[#595_guide] Disabled guide by default
Enable in /etc/rvd_front.conf
parent
dc481719
Changes
3
Hide whitespace changes
Inline
Side-by-side
etc/rvd_front.conf.example
View file @
97c9bd8e
...
...
@@ -11,6 +11,7 @@
,group => 'ravada'
,secrets => ['changeme1','changeme2']
,login_custom => ''
,guide => ''
,guide_custom => ''
,session_timeout => 5*60
,session_timeout_admin => 15*60
...
...
rvd_front.pl
View file @
97c9bd8e
...
...
@@ -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
}
);
}
...
...
templates/main/list_bases2.html.ep
View file @
97c9bd8e
...
...
@@ -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) {
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment