Commit e649774e authored by Francesc Guasch's avatar Francesc Guasch
Browse files

[#69] write spice URL and redirect in the HTML

parent 6307acc1
......@@ -382,6 +382,7 @@ sub _logged_in {
$c->stash(_logged_in => $login );
$c->stash(_user => $USER);
$c->stash(_anonymous => !$USER);
$c->stash(url => undef);
return $USER;
}
......@@ -957,6 +958,7 @@ sub list_bases_anonymous {
, _logged_in => undef
, _anonymous => 1
, _user => undef
, url => undef
);
}
......
......@@ -4,6 +4,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
% if ($url) {
<meta HTTP-EQUIV="REFRESH" content="0; url=<%= $url %>">
% }
<title>Ravada VDI</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
......
......@@ -8,7 +8,7 @@
<div class="jumbotron">
<h2>Running <%= $name %></h2>
Hi <%= $login %>,
<a href="<%= $url %>">click here</a> if your host won't come out.
click <a href="<%= $url %>"><%= $url %></a> if your host won't come out.
</div>
</div>
......
Markdown is supported
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