Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
0338ace8
Commit
0338ace8
authored
Feb 28, 2014
by
Robert Ricci
Browse files
Move signup button to navbar (logged on only)
parent
b9e48c66
Changes
2
Hide whitespace changes
Inline
Side-by-side
www/aptui/quickvm.css
View file @
0338ace8
...
...
@@ -58,6 +58,10 @@ body {
margin-right
:
10px
;
}
.navbar-right
li
.navbar-btn
{
margin-left
:
10px
;
}
/* Set the fixed height of the footer here */
#footer
{
clear
:
both
;
...
...
@@ -271,7 +275,7 @@ body {
/* Smaller nav tabs. */
.nav
>
li
>
a
{
padding
:
5px
5px
;
}
}
*/
/* Styles for svg diagrams */
.topomap
{
...
...
www/aptui/quickvm_sup.php
View file @
0338ace8
...
...
@@ -129,21 +129,28 @@ function SPITHEADER($thinheader = 0)
(
$login_user
?
"<p>
$login_uid
logged in</p>"
:
""
)
.
"</li>
\n
"
;
if
(
!
NOLOGINS
())
{
echo
"<li id='
loginbutton
' "
.
echo
"<li id='
signupitem
' "
.
(
$login_user
?
"class='hidden'"
:
""
)
.
">"
.
" <a class='btn btn-primary navbar-btn'
"<form><a class='btn btn-primary navbar-btn'
id='signupbutton'
href='signup.php'>
Sign Up</a></form></li>
\n
"
;
echo
"<li id='loginitem' "
.
(
$login_user
?
"class='hidden'"
:
""
)
.
">"
.
"<form><a class='btn btn-primary navbar-btn'
id='loginbutton'
data-toggle='modal'
href='#quickvm_login_modal'
data-target='#quickvm_login_modal'>
Login</a></li>
Login</a></
form></
li>
\n
"
;
}
}
echo
" </ul>
<ul class='nav navbar-nav navbar-left'>
<li><a class='btn btn-quickvm-home navbar-btn'
href='instantiate.php'>Home</a></li>
\n
"
;
<li><
form><
a class='btn btn-quickvm-home navbar-btn'
href='instantiate.php'>Home</a></
form></
li>
\n
"
;
if
(
!
$disable_accounts
)
{
echo
" <li id='quickvm_actions_menu' class='dropdown "
.
(
!
$login_user
?
"hidden"
:
""
)
.
"'>"
.
...
...
@@ -302,9 +309,6 @@ function SpitLoginModal($id)
class=
'form-control'
type=
'submit'
name=
'login'
>
Login
</button>
or
<a
class=
'btn btn-primary btn-sm'
href=
'signup.php'
>
Sign Up
</a>
</div>
</div>
</div>
...
...
Write
Preview
Supports
Markdown
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