More helpful message if javascript is not activated. (#3110)

* More helpful message if javascript is not activated.

* Clearer message when noJS

* Updating the CSS to make the noJS message look nicer on mobile version.
This commit is contained in:
Vincent 2016-10-28 08:30:04 +13:00 committed by Matt Westcott
parent 169045b186
commit 46724f6954
2 changed files with 6 additions and 2 deletions

View file

@ -61,7 +61,6 @@ body {
padding: 1em 2em;
margin: 0;
position: relative;
width: 100%;
text-align: center;
a {

View file

@ -20,7 +20,12 @@
<!--[if lt IE 9]>
<p class="capabilitymessage">{% blocktrans %}You are using an <strong>outdated</strong> browser not supported by this software. Please <a href="http://browsehappy.com/">upgrade your browser</a>.{% endblocktrans %}</p>
<![endif]-->
<noscript class="capabilitymessage">{% trans 'Javascript is required to use Wagtail, but it is currently disabled' %}</noscript>
<noscript class="capabilitymessage">
{% blocktrans %}
Javascript is required to use Wagtail, but it is currently disabled.<br />
Here are the <a href="http://www.enable-javascript.com/" target="_blank" rel="noopener">instructions how to enable JavaScript in your web browser</a>.
{% endblocktrans %}
</noscript>
{% block js %}{% endblock %}