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 page template to warn users with disabled
  JavaScript on their browser.  (closes inveniosoftware#1039)

Signed-off-by: Jiri Kuncar <[email protected]>
  • Loading branch information
jirikuncar committed Mar 24, 2015
1 parent 96bfc41 commit 67d969d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions invenio/base/templates/page_base.html
Original file line number Diff line number Diff line change
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 67d969d

Please sign in to comment.