Commits

Luke Plant committed ef66499 Merge

Merged from default

  • Participants
  • Parent commits ac5132b, 5347dba
  • Branches live

Comments (0)

Files changed (4)

File cciw/cciwmain/static/css/style.css

     padding: 5px;
 }
 
+/* Internet Explorer on WinXP message */
+#winxp-ie-message {
+    position: fixed;
+    top: 0px;
+    left: 0px;
+    width: 100%;
+    text-align: center;
+    background-color: #800000;
+    color: white;
+    padding: 5px;
+}
+
 /* Messages */
 ul.messagelist {
     padding: 0 0 5px 0;
     # We currently don't need this to be separate for staging and production
     rsync_dir(join(parent_dir, "secure_downloads_src"),
               join(webapps_root, 'cciw_protected_downloads_src'))
+    run("chmod -R ugo+r %s" % join(webapps_root, 'cciw_protected_downloads_src'))
 
 
 def _build_static(version):
-#!/usr/bin/env python2.7
+#!/usr/bin/env python
 import warnings
 #warnings.simplefilter("error", PendingDeprecationWarning)
 import os

File templates/cciw/base.html

       browser</a>.
     </div>
     <![endif]-->
+    <!--[if IE]>
+    <div id="winxp-ie-message" style="display: none;">
+      You are running Internet Explorer on Windows XP. This does not suuport
+      modern ways of supporting HTTP/SSL, so you will have seen an SSL
+      certificate error to get to this page. Please use
+      a <a href="http://abetterbrowser.org/">different browser</a>, or upgrade
+      your operating system to a more recent version of Windows.
+    </div>
+    <script type="text/javascript">
+      if (/Windows NT 5.1/.test(window.navigator.userAgent)) {
+         document.getElementById("winxp-ie-message").style.display = "block";
+      }
+    </script>
+    <![endif]-->
+
 </body>
 </html>