Serve planet layout images from the local webserver
authorMagnus Hagander <magnus@hagander.net>
Sat, 21 May 2016 16:50:20 +0000 (12:50 -0400)
committerMagnus Hagander <magnus@hagander.net>
Sat, 21 May 2016 16:50:20 +0000 (12:50 -0400)
It's kind of silly to pull them down from www.postgresql.org each time.
And with the switch to https-only there, it will also lead to a bunch of
extra redirects which will slow things down.

template/base.tmpl
www/css/planet.css
www/css/planet_reg.css
www/img/hdr_fill.png [new file with mode: 0644]

index b6a99858ed001663ea5571ef43b42dae1acf3976..232f6837319815bbebe4b8ad0bae419d02a3db6a 100644 (file)
@@ -11,8 +11,8 @@
  <body>
   <div id="planetWrap">
    <div id="planetHeader">
-    <div class="fl"><a href="/"><img src="http://www.postgresql.org/layout/images/hdr_left.png" alt="PostgreSQL" /></a></div>
-    <div class="fr"><img width="210" height="80" src="http://www.postgresql.org/layout/images/hdr_right.png" alt="The world's most advanced open source database" /></div>
+    <div class="fl"><a href="/"><img src="/img/hdr_left.png" alt="PostgreSQL" /></a></div>
+    <div class="fr"><img width="210" height="80" src="/img/hdr_right.png" alt="The world's most advanced open source database" /></div>
     <div class="cb"></div>
    </div> <!-- planetHeader -->
    <div id="planetMain">
index 0a59bce4a7c194b8c536abb9fbe40119f06f71de..854cdebf6431a9fcdf26b3e445a27037e1ebff96 100644 (file)
@@ -9,7 +9,7 @@ body {
 
 div#planetHeader {
   width: 100%;
-  background: url(http://www.postgresql.org/layout/images/hdr_fill.png);
+  background: url(/img/hdr_fill.png);
   padding: 0 0 0 0;
   height: 80px;
   margin: 5px 0 2px 0;
index 05f302305758d14e6ee746f9928333f1221d13b5..39de46339a3143277261d87c69b64d191b337976 100644 (file)
@@ -1,7 +1,7 @@
 div#planethdr {
    padding-left: 0px;
    padding-right: 0px;
-   background: url(http://www.postgresql.org/layout/images/hdr_fill.png);
+   background: url(/img/hdr_fill.png);
 }
 
 input.form-control[type=checkbox] {
diff --git a/www/img/hdr_fill.png b/www/img/hdr_fill.png
new file mode 100644 (file)
index 0000000..ed2e57c
Binary files /dev/null and b/www/img/hdr_fill.png differ