Skip to content

Commit

Permalink
[#595_guide] Disabled guide by default
Browse files Browse the repository at this point in the history
Enable in /etc/rvd_front.conf
  • Loading branch information
fv3rdugo committed Mar 9, 2018
1 parent fe3c23f commit 5cbc53b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion etc/rvd_front.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
,secrets => ['changeme1','changeme2']
,login_custom => ''
,footer => ''
,monitoring => 0
,monitoring => ''
,guide => ''
,guide_custom => ''
,session_timeout => 5*60
,session_timeout_admin => 15*60
};
3 changes: 3 additions & 0 deletions rvd_front.pl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
,login_header => 'Welcome'
,login_message => ''
,secrets => ['changeme0']
,guide => 0
,login_custom => ''
,footer => 'bootstrap/footer'
,monitoring => 0
Expand Down Expand Up @@ -121,6 +122,7 @@
,_user => undef
,footer=> $CONFIG_FRONT->{footer}
,monitoring => $CONFIG_FRONT->{monitoring}
,guide => $CONFIG_FRONT->{guide}
);

return access_denied($c)
Expand Down Expand Up @@ -832,6 +834,7 @@ sub login {
,login_header => $CONFIG_FRONT->{login_header}
,login_message => $CONFIG_FRONT->{login_message}
,monitoring => $CONFIG_FRONT->{monitoring}
,guide => $CONFIG_FRONT->{guide}
);
}

Expand Down
5 changes: 4 additions & 1 deletion templates/main/list_bases2.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
<div class="panel panel-default">
<div class="panel-heading">
<h2><%=l 'Choose a Machine to Start' %></h2>
% if ($user && $user->is_admin && $public_bases && $private_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) {
<div ng-cloak>
<a ng-click="toggle_only_public()" class="label label-primary"
align="right" ng-show="!only_public">Hide Private</a>
Expand Down

0 comments on commit 5cbc53b

Please sign in to comment.