This commit is contained in:
Jérémie Astori 2017-08-27 20:55:00 -04:00 committed by Pavel Djundik
parent 055bd5dca5
commit 0e55dafd8a
4 changed files with 47 additions and 38 deletions

View File

@ -46,19 +46,7 @@
<div id="windows"> <div id="windows">
<div id="loading" class="window active"> <div id="loading" class="window active">
<div class="container"> <div class="container">
<div class="row"> {{> ./views/windows/loading}}
<div class="col-xs-12">
<h1 class="title">The Lounge is loading…</h1>
</div>
<div class="col-xs-12">
<p id="loading-page-message">Loading the app… <a href="http://enable-javascript.com/" target="_blank" rel="noopener">Make sure to have JavaScript enabled.</a></p>
<div id="loading-slow">
<p>This is taking longer than it should, there might be connectivity issues.</p>
<button id="loading-slow-reload" class="btn">Reload page</button>
</div>
<script async src="js/loading-slow-alert.js"></script>
</div>
</div>
</div> </div>
</div> </div>
<div id="chat-container" class="window"> <div id="chat-container" class="window">
@ -81,31 +69,7 @@
</div> </div>
<div id="sign-in" class="window"> <div id="sign-in" class="window">
<form class="container" method="post" action=""> <form class="container" method="post" action="">
<div class="row"> {{> views/windows/sign_in}}
<div class="col-xs-12">
<h1 class="title">Sign in to The Lounge</h1>
</div>
<div class="col-xs-12">
<label>
Username
<input class="input" name="user">
</label>
</div>
<div class="col-xs-12">
<label>
Password
<input class="input" type="password" name="password">
</label>
</div>
<div class="col-xs-12 error" style="display: none;">
Authentication failed.
</div>
<div class="col-xs-12">
<button type="submit" class="btn">
Sign in
</button>
</div>
</div>
</form> </form>
</div> </div>
<div id="connect" class="window"> <div id="connect" class="window">

View File

@ -20,6 +20,11 @@ module.exports = {
whois: require("./actions/whois.tpl"), whois: require("./actions/whois.tpl"),
}, },
windows: {
loading: require("./windows/loading.tpl"),
sign_in: require("./windows/sign_in.tpl"),
},
chan: require("./chan.tpl"), chan: require("./chan.tpl"),
chat: require("./chat.tpl"), chat: require("./chat.tpl"),
contextmenu_divider: require("./contextmenu_divider.tpl"), contextmenu_divider: require("./contextmenu_divider.tpl"),

View File

@ -0,0 +1,13 @@
<div class="row">
<div class="col-xs-12">
<h1 class="title">The Lounge is loading…</h1>
</div>
<div class="col-xs-12">
<p id="loading-page-message">Loading the app… <a href="http://enable-javascript.com/" target="_blank" rel="noopener">Make sure to have JavaScript enabled.</a></p>
<div id="loading-slow">
<p>This is taking longer than it should, there might be connectivity issues.</p>
<button id="loading-slow-reload" class="btn">Reload page</button>
</div>
<script async src="js/loading-slow-alert.js"></script>
</div>
</div>

View File

@ -0,0 +1,27 @@
<div class="row">
<div class="col-xs-12">
<h1 class="title">Sign in to The Lounge</h1>
</div>
<div class="col-xs-12">
<label>
Username
<input class="input" name="user">
</label>
</div>
<div class="col-xs-12">
<label>
Password
<input class="input" type="password" name="password">
</label>
</div>
<div class="col-xs-12">
<label class="remember">
<input type="checkbox" name="remember" value="on" id="sign-in-remember" checked>
Stay signed in
</label>
</div>
<div class="col-xs-12 error" style="display: none;">Authentication failed.</div>
<div class="col-xs-12">
<button type="submit" class="btn">Sign in</button>
</div>
</div>