accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctubb...@apache.org
Subject [1/4] accumulo git commit: Add a banner on non-canonical mirrors
Date Tue, 15 Mar 2016 22:06:39 GMT
Repository: accumulo
Updated Branches:
  refs/heads/asf-site 30999fdbe -> f0f551cff
  refs/heads/gh-pages 3de6faf86 -> 2bbf34b19


Add a banner on non-canonical mirrors


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/2bbf34b1
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/2bbf34b1
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/2bbf34b1

Branch: refs/heads/gh-pages
Commit: 2bbf34b19fcf6cdb25230afa090d6206bee88b8e
Parents: 3de6faf
Author: Christopher Tubbs <ctubbsii@apache.org>
Authored: Tue Mar 15 17:58:32 2016 -0400
Committer: Christopher Tubbs <ctubbsii@apache.org>
Committed: Tue Mar 15 17:58:32 2016 -0400

----------------------------------------------------------------------
 _layouts/skeleton.html | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/2bbf34b1/_layouts/skeleton.html
----------------------------------------------------------------------
diff --git a/_layouts/skeleton.html b/_layouts/skeleton.html
index 8cfc0f5..3514f44 100644
--- a/_layouts/skeleton.html
+++ b/_layouts/skeleton.html
@@ -37,6 +37,14 @@
 <title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape
}}{% endif %}</title>
 
 <script>
+$(function() {
+  var host = window.location.host;
+  if (typeof host !== 'undefined' && host !== 'accumulo.apache.org') {
+    $('#non-canonical').show();
+  }
+});
+</script>
+<script>
 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
@@ -75,6 +83,9 @@ if (ga.hasOwnProperty('loaded') && ga.loaded === true) {
     </div>
     <div class="col-md-8 col-md-offset-1">
 
+      <div id="non-canonical" style="display: none; background-color: #F0E68C; padding-left:
1em;">
+        Visit the official site at: <a href="https://accumulo.apache.org">https://accumulo.apache.org</a>
+      </div>
       <div id="content">
         {% unless page.skiph1fortitle == '' %}
         <h1 class="title">{% if page.title %}{{ page.title | escape }}{% else %}{{
site.title | escape }}{% endif %}</h1>


Mime
View raw message