Commit 0338ace8 authored by Robert Ricci's avatar Robert Ricci

Move signup button to navbar (logged on only)

parent b9e48c66
......@@ -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 {
......
......@@ -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>
......
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