summaryrefslogtreecommitdiff
path: root/app/views/sessions/_warnings.html.haml
blob: baf80a4409ce86450c1928a2d8ab0912d2812135 (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';
  }