Commit 44ed9b70 authored by Fernando Verdugo Arias's avatar Fernando Verdugo Arias
Browse files

Add settings page options

parent 605379a4
...@@ -389,6 +389,17 @@ any '/requirements' => sub { ...@@ -389,6 +389,17 @@ any '/requirements' => sub {
$c->render(template => 'bootstrap/requirements'); $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 { sub _init_error {
......
...@@ -48,6 +48,8 @@ ...@@ -48,6 +48,8 @@
<li class="dropdown"> <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>&nbsp;<%= $_logged_in %><span class="caret"></span></a> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="fa fa-user"></i>&nbsp;<%= $_logged_in %><span class="caret"></span></a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li role="separator" class="divider"></li>
<li><a href="/settings"><i class="fa fa-sliders"></i>&nbsp;<%=l 'Settings' %></a></li>
<li> <li>
<a href="/logout"><i class="fa fa-fw fa-power-off"></i><%=l 'Log Out' %></a> <a href="/logout"><i class="fa fa-fw fa-power-off"></i><%=l 'Log Out' %></a>
</li> </li>
......
<!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>
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