Skip to content
Snippets Groups Projects
Commit 7f49bb7c authored by Shane Tomlinson's avatar Shane Tomlinson
Browse files

If authenticated, do not show the signIn button.

Changing the signIn button in about.ejs from a button to an anchor.
parent a71cc4a3
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,7 @@ p:last-child {
margin-bottom: 0 !important;
}
button::-moz-focus-inner {
button::-moz-focus-inner, .button::-moz-focus-inner {
padding: 0;
border: 0
}
......@@ -164,7 +164,7 @@ hr {
float: left;
}
.row button {
.row button, .row .button {
float: right;
display: inline-block;
}
......@@ -763,6 +763,10 @@ a.forgot {
text-decoration: none;
}
.authenticated .signIn {
display: none;
}
#header,
#footer {
display: block;
......
/*globals BrowserIDNetwork: true, BrowserIDIdentities: true, _: true, confirm: true, getEmails: true, display_saved_ids: true, removeEmail: true*/
/*globals BrowserIDNetwork: true, BrowserIDIdentities: true, _: true, confirm: true, display_saved_ids: true*/
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
......@@ -139,8 +139,9 @@ $(function() {
function display_saved_ids() {
var emails = {};
BrowserIDIdentities.syncEmailKeypairs(function() {
emails = getEmails();
emails = BrowserIDIdentities.getEmails();
if (_.isEmpty(emails)) {
console.log(emails);
$("#content").hide();
......
......@@ -8,7 +8,7 @@
<div class="row cf">
<h2>Sign In. Simply.</h2>
<button class="create signIn">sign in</button> <!-- XXX: remove this button if user is signed in -->
<button href="/" class="button create signIn">sign in</button> <!-- XXX: remove this button if user is signed in -->
</div>
<div class="row one cf">
<img src="http://placehold.it/200x140/eee/ccc">
......@@ -39,10 +39,3 @@
</div>
<script type="text/javascript">
$(document).ready(function () {
$(".signIn").click(function () {
document.location = "/signin";
});
});
</script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment