Skip to content

Commit

Permalink
global: noscript warning addition
Browse files Browse the repository at this point in the history
* NEW Adds 'noscript' block to the page template to warn users with
  disabled JavaScript on their browser.  (closes inveniosoftware#1039)

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>
  • Loading branch information
jirikuncar committed Mar 24, 2015
1 parent 96bfc41 commit 2a8fbc3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions invenio/base/templates/page_base.html
Expand Up @@ -124,6 +124,14 @@ <h1>{{ title }}</h1>
</div>
{% endif %}
{% endblock title %}
{% block noscript %}
<noscript>
<div class="alert alert-warning">
<strong>{{ _("Warning") }}</strong> {{ _('This page requires to have JavaScript enabled.') }}
{{ _('Please enable JavaScript on your browser.') }}
</div>
</noscript>
{% endblock %}
{{ flashed_messages() }}
{%- block body %}
{{ body }}
Expand Down

0 comments on commit 2a8fbc3

Please sign in to comment.