Skip to content

Commit

Permalink
Add a <noscript> banner to the base template
Browse files Browse the repository at this point in the history
Explain how to enable JavaScript for users and use the site features for
users.
  • Loading branch information
francoisfreitag committed Apr 29, 2024
1 parent 13644cb commit 1016e5b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions itou/templates/layout/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@
{% block extra_head %}{% endblock %}
</head>
<body class="{% block body_class %}{% endblock %}">
<noscript>
<div class="alert alert-info">
<p class="mb-0">
Pour bénéficier de toutes les fonctionnalités de ce site, l’activation de JavaScript est nécessaire.
Voici les <a href="https://www.enablejavascript.io/" target="_blank" rel="noopener">
instructions pour activer JavaScript dans votre navigateur Web</a>.
</p>
</div>
</noscript>
<nav role="navigation" aria-label="Accès rapide" tabindex="0" class="visually-hidden">
<ul>
<li>
Expand Down
6 changes: 3 additions & 3 deletions itou/utils/staticfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,11 @@
},
"theme-inclusion": {
"download": {
"url": "https://github.com/gip-inclusion/itou-theme/archive/refs/tags/v1.6.1.zip",
"sha256": "89606203853bb1f6b2d536f2c9804686618e4bfc564d3d76ff9b3811f0a7d8b6",
"url": "https://github.com/gip-inclusion/itou-theme/archive/refs/tags/v1.6.2.zip",
"sha256": "cd7b3bb1d9d2d517be5a40b386ea1a05c96be2e5558de716e7629289b7a8c443",
},
"extract": {
"origin": "itou-theme-1.6.1/dist",
"origin": "itou-theme-1.6.2/dist",
"destination": "vendor/theme-inclusion/",
"files": [
"javascripts/app.js",
Expand Down

0 comments on commit 1016e5b

Please sign in to comment.