aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorSam2013-06-26 21:50:01 +0000
committerSam2013-06-26 21:50:01 +0000
commitc751c6e4e50fdb35ea1108975e21735a665b48df (patch)
tree422af8883a9cfb6eeb9e212fd40c3eef283650bf /wqflask
parenta9960c6e0b99e3641d309d22af9f1be77d738c3f (diff)
downloadgenenetwork2-c751c6e4e50fdb35ea1108975e21735a665b48df.tar.gz
More signin changes
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/static/new/javascript/thank_you.coffee4
-rw-r--r--wqflask/wqflask/static/new/javascript/thank_you.js10
-rw-r--r--wqflask/wqflask/templates/base.html4
-rw-r--r--wqflask/wqflask/templates/security/thank_you.html2
4 files changed, 18 insertions, 2 deletions
diff --git a/wqflask/wqflask/static/new/javascript/thank_you.coffee b/wqflask/wqflask/static/new/javascript/thank_you.coffee
new file mode 100644
index 00000000..975f85c6
--- /dev/null
+++ b/wqflask/wqflask/static/new/javascript/thank_you.coffee
@@ -0,0 +1,4 @@
+$ ->
+ console.log("Starting transform")
+ $('#login_out').text('Sign out').attr('href', '/logout').removeClass('modalize')
+ console.log("Transformed to sign out I hope")
diff --git a/wqflask/wqflask/static/new/javascript/thank_you.js b/wqflask/wqflask/static/new/javascript/thank_you.js
new file mode 100644
index 00000000..2871dd2d
--- /dev/null
+++ b/wqflask/wqflask/static/new/javascript/thank_you.js
@@ -0,0 +1,10 @@
+// Generated by CoffeeScript 1.4.0
+(function() {
+
+ $(function() {
+ console.log("Starting transform");
+ $('#login_out').text('Sign out').attr('href', '/logout').removeClass('modalize');
+ return console.log("Transformed to sign out I hope");
+ });
+
+}).call(this);
diff --git a/wqflask/wqflask/templates/base.html b/wqflask/wqflask/templates/base.html
index bdb1c362..cbed5859 100644
--- a/wqflask/wqflask/templates/base.html
+++ b/wqflask/wqflask/templates/base.html
@@ -70,9 +70,9 @@
</li>
<li class="">
{% if g.identity.name=="anon" %}
- <a id="login" class="modalize" href="/login">Sign in</a>
+ <a id="login_out" class="modalize" href="/login">Sign in</a>
{% else %}
- <a href="/logout">Sign out</a>
+ <a id="login_out" href="/logout">Sign out</a>
{% endif %}
</li>
</ul>
diff --git a/wqflask/wqflask/templates/security/thank_you.html b/wqflask/wqflask/templates/security/thank_you.html
index f2e2db68..dd6c7297 100644
--- a/wqflask/wqflask/templates/security/thank_you.html
+++ b/wqflask/wqflask/templates/security/thank_you.html
@@ -4,3 +4,5 @@
<div class="security_box">
<h4>Thank you for signing in!</h4>
</div>
+
+<script src="/static/new/javascript/thank_you.js"></script>