#146 Add a message for noscript users
Opened 7 months ago by misc. Modified 7 months ago
fedora-web/ misc/websites add_noscript  into  master

Add a message for noscript users
Michael Scherer • 7 months ago  
@@ -22,6 +22,7 @@ 


  {% block js %}

  {% assets "js_all" %}

+ <noscript>Please enable Javascript if you have trouble seeing part of the website. All our code is under a free license and is available on <a href="https://pagure.io/fedora-web/websites.git">our forge</a>.</noscript> 

  <script type="text/javascript" src="{{ ASSET_URL }}"></script>

  {% endassets %}

  {% endblock %}

So I am using noscript, and going on https://getfedora.org/coreos/download, it do not display anything useful. I figured some messages could help to remind people that the website need JS.

I didn't test how it render everything, so maybe it should go somewhere else.

This would need to be wrapped properly in {% trans %} blocks (see other templates for examples of how to do this properly with links).

Also, only the coreos page(s) should require JS (and that team manages/controls those pages themselves), so we might only want this warning on those pages.