what-is-my-browser.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {% extends "base.html" %}
  2. {% block content %}
  3. {% include 'browser-info.html' %}
  4. <h2>Is my browser up-to-date?</h2>
  5. {% if status.uptodate %}
  6. <p>{{ _('Your browser is up-to-date.') }}</p>
  7. {% else %}
  8. <p>
  9. {{ _('Your browser is out-of-date.') }}
  10. </p>
  11. {% endif %}
  12. {% if not browser.is_latest %}
  13. {# Note: "[The Browser (e.g. Chrome 22.0)] is not the latest version. #}
  14. <p>{{ _x("It is not the latest version.") }}</p>
  15. <p>{{ _x("You can upgrade to a newer version of {browser_name}.").format(browser_name=browser.name) }}</p>
  16. {% endif %}
  17. <h2>Is my browser secure?</h2>
  18. {% if browser.is_insecure %}
  19. <p class="warning">
  20. {{ ("Your browser has severe security issues.") }}
  21. {{ ("You could get a virus by just viewing a malicious website.") }}
  22. </p>
  23. {% else %}
  24. <p>
  25. {{ _x("Your browser is safe.") }}
  26. </p>
  27. {% endif %}
  28. <h2>What is my user agent string?</h2>
  29. {{ ('Your browser identifies itself with ("User agent string"):') }}<br/>
  30. <code class="small">
  31. {{ emulate or request.user_agent }}
  32. </code>
  33. <script async src="https://www.googletagmanager.com/gtag/js?id=UA-110098170-1"></script>
  34. <script>
  35. if (document.cookie.indexOf('noanalytics=true') > -1) {
  36. var gaProperty = 'UA-110098170-1';
  37. window['ga-disable-' + gaProperty] = true;
  38. }
  39. window.dataLayer = window.dataLayer || [];
  40. function gtag() {
  41. dataLayer.push(arguments);
  42. }
  43. gtag('js', new Date());
  44. </script>
  45. {% endblock %}