Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
e649774e
Commit
e649774e
authored
Nov 28, 2016
by
Francesc Guasch
Browse files
[#69] write spice URL and redirect in the HTML
parent
6307acc1
Changes
3
Hide whitespace changes
Inline
Side-by-side
rvd_front.pl
View file @
e649774e
...
...
@@ -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
);
}
...
...
templates/bootstrap/header.html.ep
View file @
e649774e
...
...
@@ -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">
...
...
templates/bootstrap/run.html.ep
View file @
e649774e
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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