browser-info.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <h2>{{ _('What is my current browser?') }}</h2>
  2. <div class="centered">
  3. <p class="centered">
  4. {# Note: The name of the browser follows in the next line. Example: Your current browser ist ... Internet Explorer 7 on Windows 7. #}
  5. {{ _x('Your current browser is') }}
  6. </p>
  7. <div class="browserbox">
  8. <div class="browserinfo" style="background-image: url(/static/img/big/{{ browser.n }}.png)">
  9. </div>
  10. <h3 class="large"> {{ browser.t }} </h3>
  11. <p>(Version {{ browser.fullv }})</p>
  12. <p>on {{ system.title }}.</p>
  13. {% if browser.age %}
  14. {# Note: [The browser was] ... release 5 months ago #}
  15. <p>{{ _('released {months} months ago').format(months=browser.age_years*12|round) }}</p>
  16. {% endif %}
  17. {% if browser.is_supported %}
  18. <p>{{ _x("Your browser is still supported by the vendor.") }}</p>
  19. {% else %}
  20. {# Note: It (the browser) is not ... #}
  21. <p>{{ _x("It is not supported by the vendor anymore.") }}</p>
  22. {% endif %}
  23. {% if not browser.is_latest %}
  24. {# Note: "[The Browser (e.g. Chrome 22.0)] is not the latest version. #}
  25. <p>{{ _x("It is not the latest version.") }}</p>
  26. <p>{{ _x("You can upgrade to a newer version of {browser_name}.").format(browser_name=browser.name) }}</p>
  27. {% endif %}
  28. {# <p>updated {} months ago</p> #}
  29. {% if browser.is_insecure %}
  30. <p class="warning">
  31. {{ _x("Your browser has severe security issues.") }}
  32. {{ _x("You could get a virus by just viewing a malicious website.") }}
  33. </p>
  34. {% else %}
  35. <p>
  36. {{ _x("Your browser is safe.") }}
  37. </p>
  38. {% endif %}
  39. <p>
  40. {{ _x('Your browser identifies itself with ("User agent string"):') }}<br/>
  41. <code class="small">
  42. {{ emulate or request.user_agent }}
  43. </code>
  44. </p>
  45. </div>
  46. <!--<a class="button ignore centered">Feedback: This information is wrong</a>--> {# TODO #}
  47. </div>
  48. <style>
  49. .browserbox {
  50. padding: 10px 20px;
  51. margin: 10px auto;
  52. max-width: 400px;
  53. background-color: #eee;
  54. border-radius: 10px;
  55. text-align: left;
  56. }
  57. .browserbox p {
  58. margin: 5px 0;
  59. }
  60. .browserinfo {
  61. float: left;
  62. width: 120px;
  63. height: 120px;
  64. background-size: 110px auto;
  65. background-repeat: no-repeat;
  66. background-position: 0 5px;
  67. }
  68. .large {
  69. font-size: 30px;
  70. margin: 0;
  71. color: #636363;
  72. }
  73. .warning {
  74. color: #e25600;
  75. }
  76. .small {
  77. font-size: 0.8em;
  78. }
  79. .centered {
  80. tex-align: center;
  81. }
  82. </style>