summaryrefslogtreecommitdiff
path: root/app/views/users/_warnings.html.haml
blob: 79ab1032f16d24479a97dbf4eb8e824e59efaaea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
%noscript
  %div.alert.alert-error=t :js_required_html
#cookie_warning.alert.alert-error{:style => "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';
  }