Merge pull request #420 from thelounge/astorije/sign-in-fs

Do not display the sidebar on sign-in page
This commit is contained in:
Pavel Djundik 2016-06-21 20:10:23 +03:00 committed by GitHub
commit 59c2494943
3 changed files with 5 additions and 7 deletions

View file

@ -512,6 +512,10 @@ button,
top: 4px;
}
.signed-out #main {
left: 5px;
}
#header {
display: none;
height: 40px;

View file

@ -23,7 +23,7 @@
<link rel="manifest" href="manifest.json">
</head>
<body class="<%= public ? "public" : "" %>">
<body class="signed-out <%= public ? "public" : "" %>">
<div id="wrap">
<div id="viewport">
@ -60,9 +60,6 @@
</div>
</div>
<div id="sign-in" class="window">
<div class="header">
<button class="lt" aria-label="Toggle channel list"></button>
</div>
<form class="container" method="post" action="">
<div class="row">
<div class="col-xs-12">

View file

@ -77,14 +77,11 @@ $(function() {
});
socket.on("auth", function(data) {
var body = $("body");
var login = $("#sign-in");
login.find(".btn").prop("disabled", false);
if (!data.success) {
body.addClass("signed-out");
window.localStorage.removeItem("token");
var error = login.find(".error");