incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject git commit: [#7028] provide help to developers if CSS not loading
Date Tue, 07 Jan 2014 22:18:44 GMT
Updated Branches:
  refs/heads/db/7028 [created] e270f33d6


[#7028] provide help to developers if CSS not loading


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/e270f33d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/e270f33d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/e270f33d

Branch: refs/heads/db/7028
Commit: e270f33d63625833efed5f13e335482236cd3832
Parents: 3d419ec
Author: Dave Brondsema <dave@brondsema.net>
Authored: Tue Jan 7 17:17:38 2014 -0500
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Tue Jan 7 17:18:16 2014 -0500

----------------------------------------------------------------------
 Allura/allura/nf/allura/css/site_style.css       | 2 ++
 Allura/allura/templates/jinja_master/master.html | 6 ++++++
 2 files changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/e270f33d/Allura/allura/nf/allura/css/site_style.css
----------------------------------------------------------------------
diff --git a/Allura/allura/nf/allura/css/site_style.css b/Allura/allura/nf/allura/css/site_style.css
index ebb0b92..ac0374d 100644
--- a/Allura/allura/nf/allura/css/site_style.css
+++ b/Allura/allura/nf/allura/css/site_style.css
@@ -398,6 +398,8 @@ td, td img {
   white-space: nowrap;
 }
 
+.hide {display:none;}
+
 blockquote {
   border-left: 1px solid #cccccc;
   margin-left: 1em;

http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/e270f33d/Allura/allura/templates/jinja_master/master.html
----------------------------------------------------------------------
diff --git a/Allura/allura/templates/jinja_master/master.html b/Allura/allura/templates/jinja_master/master.html
index 9122b1c..8dad846 100644
--- a/Allura/allura/templates/jinja_master/master.html
+++ b/Allura/allura/templates/jinja_master/master.html
@@ -72,6 +72,12 @@
   </head>
 
   <body{% block body_attrs %}{% endblock %} id="forge">
+    <h2 class="hide">
+        <span style="color:red">Error:</span> CSS did not load.<br>
+        This may happen on the first request due to CSS mimetype issues.
+        Try clearing your browser cache and refreshing.
+        <hr>
+    </h2>
     {% block body_top_js %}
     {% for blob in g.resource_manager.emit('body_top_js') %}
       {{ blob }}


Mime
View raw message