Alert user on JavaScript requirement if it's disabled

Closes-Bug: #1412749
Change-Id: I5265e9c79201c5fa952ced9d9d90668fcf0006ee
This commit is contained in:
Alan Fung 2015-01-30 11:38:11 -08:00
parent 354cdc3ea7
commit a9f82904aa
2 changed files with 13 additions and 0 deletions

View File

@ -15,6 +15,11 @@
{% include "horizon/_custom_head_js.html" %}
</head>
<body id="{% block body_id %}{% endblock %}" ng-app='hz'>
<noscript>
<div class="javascript_disabled_alert">
This application requires JavaScript to be enabled on your web browser.
</div>
</noscript>
{% block content %}
<div id="container">
<div class='topbar'>

View File

@ -1008,6 +1008,14 @@ tr.terminated {
}
}
.javascript_disabled_alert {
@extend .alert-danger;
border-bottom-style: solid;
border-bottom-width: 1px;
padding: 8px;
text-align: center;
}
#content_body {
padding-left: $sidebar-width + 15px;
padding-right: 15px;