Warn the user if an unsupported, deprecated or unknown browser is detected. Fixes #5399

This commit is contained in:
Dave Page
2020-04-14 21:15:02 +05:30
committed by Akshay Joshi
parent ee29e64039
commit 74b3495542
4 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
{% if known %}
<p>{{ _('Your browser was detected as <strong>{0}</strong> version
<strong>{1}</strong>, which is either deprecated or not supported by
pgAdmin 4.').format(browser, version) }}</p>
{% else %}
<p>{{ _('Your browser was detected as <strong>{0}</strong> version
<strong>{1}</strong>, which pgAdmin has not been tested with. pgAdmin may
not work as expected, and any issues reported when using this browser may
not be fixed.').format(browser, version) }}</p>
{% endif %}
<p>{{ _('Please visit the <a class="alert-link"
href="https://www.pgadmin.org/faq/#11" target="_new">FAQ</a> to see the
supported browsers.') }}</p>