summaryrefslogtreecommitdiff
path: root/users/app/views/users/new.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'users/app/views/users/new.html.haml')
-rw-r--r--users/app/views/users/new.html.haml11
1 files changed, 11 insertions, 0 deletions
diff --git a/users/app/views/users/new.html.haml b/users/app/views/users/new.html.haml
index 98cccb0..709289e 100644
--- a/users/app/views/users/new.html.haml
+++ b/users/app/views/users/new.html.haml
@@ -1,4 +1,15 @@
.span8.offset2
+ %noscript.alert.alert-error=t :js_required
+ #cookie_warning.alert.alert-error{:display => 'none'}
+ =t :cookie_disabled_warning
+ :javascript
+ document.cookie = "testing=cookies_enabled; path=/";
+ if(document.cookie.indexOf("testing=cookies_enabled") < 0)
+ {
+ document.getElementById('cookie_warning').style.display = 'block';
+ } else {
+ document.getElementById('cookie_warning').style.display = 'none';
+ }
%h2=t :signup
= user_form do |f|
%legend= t(:signup_message)