summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rwxr-xr-xtemplate/banner.st4
-rw-r--r--template/form_login.st38
-rwxr-xr-xtemplate/head.st10
3 files changed, 48 insertions, 4 deletions
diff --git a/template/banner.st b/template/banner.st
index cce6299..1a54489 100755
--- a/template/banner.st
+++ b/template/banner.st
@@ -23,10 +23,12 @@
</div>
</div>
</div>
+ $if(user_nick)$
<div id="logout7" class="white">
- <div align="center">$if(user_nick)$ <a href="/logout">Logout</a> $else$ <a href="/" class="btnav">Log In</a>$endif$
+ <div align="center"> <a href="/logout">Logout</a>
</div>
</div>
+ $else$ $form_login()$ $endif$
<div align="center"><br />
</div>
</div>
diff --git a/template/form_login.st b/template/form_login.st
new file mode 100644
index 0000000..5c164fe
--- /dev/null
+++ b/template/form_login.st
@@ -0,0 +1,38 @@
+<div id="login-container">
+ <div class="topnav"> <a href="login" class="signin"><span>Sign in</span></a> </div>
+ <fieldset id="signin_menu">
+ <form onsubmit="return false">
+ <input id="nickInput" name="nickInput" value="" title="username" tabindex="4" type="text">
+ </p>
+ <p>
+ <input id="passwordInput" name="passwordInput" value="" title="password" tabindex="5" type="password">
+ </p>
+ <p class="remember">
+ <input id="loginSubmit" value="Sign in" tabindex="6" type="submit">
+ </p>
+ </form>
+ </fieldset>
+</div>
+<script src="/static/js/home.js" type="text/javascript"></script>
+<script type="text/javascript">
+ jQuery(document).ready(function() {
+
+ initHome();
+
+ jQuery(".signin").click(function(e) {
+ e.preventDefault();
+ jQuery("fieldset#signin_menu").toggle();
+ jQuery(".signin").toggleClass("menu-open");
+ });
+
+ jQuery("fieldset#signin_menu").mouseup(function() {
+ return false
+ });
+ jQuery(document).mouseup(function(e) {
+ if(jQuery(e.target).parent("a.signin").length==0) {
+ jQuery(".signin").removeClass("menu-open");
+ jQuery("fieldset#signin_menu").hide();
+ }
+ });
+});
+</script> \ No newline at end of file
diff --git a/template/head.st b/template/head.st
index 078f0fd..a9bb0f0 100755
--- a/template/head.st
+++ b/template/head.st
@@ -1,12 +1,16 @@
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
+<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<!-- <script type="text/javascript" src="/static/jquery-1.3.2.min.js"></script> -->
-<script type="text/javascript" src="/static/sha1.js"></script>
-<script type="text/javascript" src="/static/pichat.js"></script>
+<script type="text/javascript" src="/static/js/underscore-min.js"></script>
+<script type="text/javascript" src="/static/js/sha1.js"></script>
+<script type="text/javascript" src="/static/js/pichat.js"></script>
<link rel="stylesheet" type="text/css" href="/static/reset.css">
<link rel="stylesheet" type="text/css" href="/static/header.css">
+$if(!user_nick)$
+<link href="/static/form_login/front.css" media="screen, projection" rel="stylesheet" type="text/css">
+$endif$
<link rel="shortcut icon" href="/static/favicon.ico">
<script type="text/javascript">