Commit 7a02e42f authored by Fernando Verdugo's avatar Fernando Verdugo Committed by Francesc Guasch
Browse files

921 outdated files (#946)

* refactor(frontend): remove files

Issue [#921]

* refactor(frontend): remove unused file

and route to this

Issue [#921]

* refactor(frontend): remove unused

Issue #921
parent 4afb2db0
@media (min-width: 768px){
#wrapper {padding-right: 225px; padding-left: 0;}
.side-nav{right: 0;left: auto;}
}
\ No newline at end of file
......@@ -888,15 +888,6 @@ any '/requirements' => sub {
$c->render(template => 'main/requirements');
};
any '/settings' => sub {
my $c = shift;
$c->stash(version => $RAVADA->version );
$c->render(template => 'main/settings');
};
any '/admin/monitoring' => sub {
my $c = shift;
......
<!DOCTYPE html>
<html>
%= include 'bootstrap/in_header'
<body role="document">
%= include 'bootstrap/in_avigation'
<header class="intro">
<div class="intro-body">
<div class="container">
<form class="form-singin" method="post">
<h2 class="form-signin-heading"><%= $login_message %></h2>
<input class="form-control" id="user" name="login" value ="<%= $login %>" type="text" placeholder="User/Email">
<input class="form-control" id="pssw" type="password" name="password" value="" placeholder="Password">
<!-- <input type="submit" name="submit" value="launch"> -->
<button id="submit" class="btn btn-lg btn-primary btn-block" type="submit" name="submit" value="launch">Launch</button>
% if (scalar @$error) {
% for my $i (@$error) {
<p id="err"><%= $i %></p>
% }
% }
</form>
</div>
</div>
</header>
%= include 'bootstrap/in_scripts'
</body>
</html>
<!DOCTYPE html>
<html ng-app="ravada.app">
%= include 'bootstrap/header'
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">
<div id="wrapper">
%= include 'bootstrap/navigation'
<script>
$_anonymous=<%= ($_anonymous or 0) %>;
</script>
<div id="page-wrapper">
<!--MACHINES SELECTION-->
<div class="page-header" ng-controller="bases">
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
<h2><%=l 'Choose a Machine to Start' %></h2>
</div>
<sol-show-cardsmachines></sol-show-cardsmachines>
</div>
</div>
</div>
</div>
<!--/row-->
<!--SUPPORT CONTACT
<div class="page-header" ng-controller="SupportForm as formCtrl">
<div class="row">
<div class="col-lg-12">
<sol-show-supportform></sol-show-supportform>
</div>
</div>
</div>
/row-->
</div>
%= include 'bootstrap/scripts'
</div>
%= include $footer
</body>
</html>
<!DOCTYPE html>
<html ng-app="ravada.app">
%= include 'bootstrap/header'
<body id="page-top" data-spy="scroll" data-target=".navbar-fixed-top">
<div id="wrapper">
%= include 'bootstrap/navigation'
<script>
$_anonymous=<%= ($_anonymous or 0) %>;
</script>
% my $public_bases = 0;
% my $private_bases = 0;
% for my $machine(@$machines) {
% if ($machine->{is_public}) {
% $public_bases++;
% } else {
% $private_bases++;
% }
% }
<div id="page-wrapper">
<!--MACHINES SELECTION-->
<div class="page-header" ng-controller="bases">
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
<h2><%=l 'Choose a Machine to Start' %></h2>
% 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"><%=l 'Hide Private' %></a>
<a ng-click="toggle_only_public()" class="label label-primary"
align="right" ng-show="only_public"><%=l 'Show All' %></a>
% }
</div>
</div>
<div class="panel-body">
% if (! $public_bases ) {
<div class="panel panel-warning">
<div class="panel-heading">
% if ($user && $user->is_admin) {
<%=l 'There are no public bases available in this system.' %>
<a href="/admin/machines"><%=l 'Create one.' %></a>
% } else {
<%=l 'There are no machines available in this system.' %>
% }
</div>
</div>
% }
% for my $machine (@$machines) {
% next if !$machine->{is_public} && (!$user || !$user->is_admin);
% my $clone_link = "/machine/clone/".$machine->{id}.".html";
% $clone_link = "/anonymous/".$machine->{id}.".html" if $_anonymous;
<div class="col-sm-4"
ng-hide="!<%= $machine->{is_public} %> && only_public">
<div class="panel panel-success">
<div class="panel-heading" id="step1">
<h3 class="panel-title"><a class="btn btn-link"
href="/machine/clone/<%= $machine->{id} %>.html" role="button"><%= $machine->{name} %></a>
% if ( !$machine->{is_public} ) {
<i>(<%=l 'not public' %>)</i>
% }
</h3>
% if ($machine->{screenshot} ) {
<a href="/machine/clone/<%= $machine->{id} %>.html"><img src="<%= $machine->{screenshot} %>" class="img-thumbnail" width="260"></a>
% }else{
<a href="/machine/clone/<%= $machine->{id} %>.html"><img src="/img/default_screenshot.png" class="screenshot-default img-thumbnail" width="260"></a>
% }
</div>
<div class="panel-body" id="step2">
<a type="button" class="btn btn-success" href="/machine/clone/<%= $machine->{id} %>.html"><strong><i class="fa fa-play" aria-hidden="true"></i>&nbsp;<%=l 'Start' %></strong></a>
% if (!$machine->{is_locked}) {
% if ( $machine->{id_clone} && $machine->{is_active} ) {
<select class="selectpicker" data-width="fit" ng-model="host_action"
ng-change="action(<%= $machine->{id_clone} %>)"
>
<option value=""><%=l 'action'%></option>
% if ($machine->{is_active}) {
<option value="shutdown.<%= $machine->{id_clone} %>" data-icon="glyphicon glyphicon-off"><%=l 'Shutdown' %></option>
<option value="hybernate.<%= $machine->{id_clone} %>" data-icon="glyphicon glyphicon-pause"><%=l 'Hibernate' %></option>
% }
% if ($machine->{id_clone}) {
<option value="restore.<%= $machine->{id_clone} %>" data-icon="glyphicon glyphicon-repeat"><%=l 'Restore'%></option>
% }
</select>
% } elsif ($machine->{id_clone}) {
<a type="button" class="btn btn-danger"
ng-click="host_restore=<%= $machine->{id_clone} %>"
><strong><i class="fas fa-redo" aria-hidden="true"></i>&nbsp;<%=l 'Restore' %></strong></a>
% }
% if ( $machine->{id_clone}) {
% if ($user->can_change_settings || $user->can_change_settings_all){
<a align="right" href="/machine/settings/<%= $machine->{id_clone} %>.html"><i class="fa fa-fw fa-cog" title="<%=l 'Settings' %>"></a></i>
% }
<div ng-show="host_restore == <%= $machine->{id_clone} %>">
<b><%=l 'Restore' %></b> <%=l 'will remove all the contents of the machine' %>
<i><b><%= $machine->{name_clone} %></b></i>.
<%=l 'Are you sure?' %><br/>
<a type="button" class="btn btn-danger"
ng-click="host_restore=0"
><%=l 'No' %></a>
<a type="button" class="btn btn-warning"
ng-click="restore(<%= $machine->{id_clone} %>)"
><%=l 'Yes' %></a>
</div>
<div ng-show="host_shutdown == <%= $machine->{id_clone} %>">
<b><%=l 'Shutting down ...' %></b>
<%=l 'It may take a couple of minutes.' %>
</div>
<div ng-show="host_hybernate== <%= $machine->{id_clone} %>">
<b><%=l 'Hybernating ...' %></b>
<%=l 'It may take a couple of minutes.' %>
</div>
% }
% }
</div>
</div>
</div>
% }
</div>
</div>
</div>
</div>
</div><!-- page header -->
</div><!-- page wrapper -->
%= include 'bootstrap/scripts'
</div>
<style>
.introjs-tooltip {
min-width: 450px;
}
</style>
%= include 'bootstrap/footer'
%= include 'bootstrap/messages'
</body>
</html>
<!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><%=l 'Settings' %></h3>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
%= include 'bootstrap/scripts'
%= include $footer
</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