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
44ed9b70
Commit
44ed9b70
authored
Jan 03, 2017
by
Fernando Verdugo Arias
Browse files
Add settings page options
parent
605379a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
rvd_front.pl
View file @
44ed9b70
...
...
@@ -389,6 +389,17 @@ any '/requirements' => sub {
$c
->
render
(
template
=>
'
bootstrap/requirements
');
};
any
'
/settings
'
=>
sub
{
my
$c
=
shift
;
return
login
(
$c
)
if
!
_logged_in
(
$c
);
$c
->
stash
(
version
=>
$RAVADA
->
version
);
$c
->
render
(
template
=>
'
bootstrap/settings
');
};
###################################################
sub
_init_error
{
...
...
templates/bootstrap/navigation.html.ep
View file @
44ed9b70
...
...
@@ -48,6 +48,8 @@
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-user"></i> <%= $_logged_in %><span class="caret"></span></a>
<ul class="dropdown-menu">
<li role="separator" class="divider"></li>
<li><a href="/settings"><i class="fa fa-sliders"></i> <%=l 'Settings' %></a></li>
<li>
<a href="/logout"><i class="fa fa-fw fa-power-off"></i><%=l 'Log Out' %></a>
</li>
...
...
templates/bootstrap/settings.html.ep
0 → 100644
View file @
44ed9b70
<!DOCTYPE html>
<html
ng-app=
"ravada.app"
>
%= include 'bootstrap/header'
<body
id=
"page-top"
data-spy=
"scroll"
data-target=
".navbar-fixed-top"
role=
"document"
>
<div
id=
"wrapper"
>
<div
ng-controller=
"settings"
>
%= include 'bootstrap/navigation'
<div
id=
"page-wrapper"
>
<div
class=
"page-header col-md-8 col-md-offset-2"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<h3>
Settings
</h3>
</div>
</div>
</div>
</div>
</div>
</div>
%= include 'bootstrap/scripts'
</body>
</html>
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