[www-doc] [Git][VideoLAN.org/websites][master] 4 commits: nightlies: remove CSS from the HEADER files.

Konstantin Pavlov gitlab at videolan.org
Fri Sep 14 14:24:53 CEST 2018


Konstantin Pavlov pushed to branch master at VideoLAN organization / websites


Commits:
80379c36 by Konstantin Pavlov at 2018-09-14T12:16:37Z
nightlies: remove CSS from the HEADER files.

- - - - -
d6d2033d by Konstantin Pavlov at 2018-09-14T12:18:06Z
Removed long unused htaccess files.

- - - - -
f5a077e1 by Konstantin Pavlov at 2018-09-14T12:23:38Z
Moved build/ CSS styles to a separate file.

- - - - -
08cbc046 by Konstantin Pavlov at 2018-09-14T12:24:03Z
Added nginx XSLT autoindex transformer.

Any changes to that file will require nginx reload, and will NOT be
automatically applied.  Please poke your favourite sysadmin to do it.

- - - - -


18 changed files:

- − nightlies.videolan.org/.htaccess
- − nightlies.videolan.org/bin/.htaccess
- − nightlies.videolan.org/build/iOS/.htaccess
- nightlies.videolan.org/build/iOS/HEADER.html
- − nightlies.videolan.org/build/macosx-intel/.htaccess
- nightlies.videolan.org/build/macosx-intel/HEADER.html
- − nightlies.videolan.org/build/source/.htaccess
- nightlies.videolan.org/build/source/HEADER.html
- − nightlies.videolan.org/build/tvOS/.htaccess
- nightlies.videolan.org/build/tvOS/HEADER.html
- − nightlies.videolan.org/build/win32/.htaccess
- nightlies.videolan.org/build/win32/HEADER.html
- − nightlies.videolan.org/build/win64/.htaccess
- nightlies.videolan.org/build/win64/HEADER.html
- − nightlies.videolan.org/build/wince/.htaccess
- nightlies.videolan.org/build/wince/HEADER.html
- + nightlies.videolan.org/custom.xslt
- + nightlies.videolan.org/style.css


Changes:

=====================================
nightlies.videolan.org/.htaccess deleted
=====================================
@@ -1,2 +0,0 @@
-RedirectPermanent /vlma/ http://nightlies.jpountz.net/vlma/
-RedirectPermanent /x264/ http://x264.nl/


=====================================
nightlies.videolan.org/bin/.htaccess deleted
=====================================
@@ -1,2 +0,0 @@
-Deny from all
-


=====================================
nightlies.videolan.org/build/iOS/.htaccess deleted
=====================================
@@ -1,2 +0,0 @@
-#this is the footer :
-IndexIgnore README.html


=====================================
nightlies.videolan.org/build/iOS/HEADER.html
=====================================
@@ -1,10 +1,3 @@
-<style type="text/css">
-    p, h1, h2, h3, h4, li { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
-    img#logo { float: left; border: 0px none black; width: 200px; }
-    header { display: block; }
-    hr { border-top: 1px solid #888; border-bottom: none; clear: both; }
-    ul { overflow: hidden; }
-</style>
 <header>
     <a href="//www.videolan.org/">
         <img src="/cone-soppera10.png" alt="VLC cone logo" id="logo" />


=====================================
nightlies.videolan.org/build/macosx-intel/.htaccess deleted
=====================================
@@ -1,2 +0,0 @@
-#this is the footer :
-IndexIgnore README.html


=====================================
nightlies.videolan.org/build/macosx-intel/HEADER.html
=====================================
@@ -1,10 +1,3 @@
-<style type="text/css">
-    p, h1, h2, h3, h4, li { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
-    img#logo { float: left; border: 0px none black; width: 200px; }
-    header { display: block; }
-    hr { border-top: 1px solid #888; border-bottom: none; clear: both; }
-    ul { overflow: hidden; }
-</style>
 <header>
     <a href="//www.videolan.org/">
         <img src="/cone-soppera10.png" alt="VLC cone logo" id="logo" />


=====================================
nightlies.videolan.org/build/source/.htaccess deleted
=====================================
@@ -1,2 +0,0 @@
-#this is the footer :
-IndexIgnore README.html


=====================================
nightlies.videolan.org/build/source/HEADER.html
=====================================
@@ -1,10 +1,3 @@
-<style type="text/css">
-    p, h1, h2, h3, h4, li { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
-    img#logo { float: left; border: 0px none black; width: 200px; }
-    header { display: block; }
-    hr { border-top: 1px solid #888; border-bottom: none; clear: both; }
-    ul { overflow: hidden; }
-</style>
 <header>
     <a href="//www.videolan.org/">
         <img src="/cone-soppera10.png" alt="VLC cone logo" id="logo" />


=====================================
nightlies.videolan.org/build/tvOS/.htaccess deleted
=====================================
@@ -1,2 +0,0 @@
-#this is the footer :
-IndexIgnore README.html


=====================================
nightlies.videolan.org/build/tvOS/HEADER.html
=====================================
@@ -1,10 +1,3 @@
-<style type="text/css">
-    p, h1, h2, h3, h4, li { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
-    img#logo { float: left; border: 0px none black; width: 200px; }
-    header { display: block; }
-    hr { border-top: 1px solid #888; border-bottom: none; clear: both; }
-    ul { overflow: hidden; }
-</style>
 <header>
     <a href="//www.videolan.org/">
         <img src="/cone-soppera10.png" alt="VLC cone logo" id="logo" />


=====================================
nightlies.videolan.org/build/win32/.htaccess deleted
=====================================
@@ -1,2 +0,0 @@
-#this is the footer :
-IndexIgnore README.html


=====================================
nightlies.videolan.org/build/win32/HEADER.html
=====================================
@@ -1,10 +1,3 @@
-<style type="text/css">
-    p, h1, h2, h3, h4, li { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
-    img#logo { float: left; border: 0px none black; width: 200px; }
-    header { display: block; }
-    hr { border-top: 1px solid #888; border-bottom: none; clear: both; }
-    ul { overflow: hidden; }
-</style>
 <header>
     <a href="//www.videolan.org/">
         <img src="/cone-soppera10.png" alt="VLC cone logo" id="logo" />


=====================================
nightlies.videolan.org/build/win64/.htaccess deleted
=====================================
@@ -1,2 +0,0 @@
-#this is the footer :
-IndexIgnore README.html


=====================================
nightlies.videolan.org/build/win64/HEADER.html
=====================================
@@ -1,10 +1,3 @@
-<style type="text/css">
-    p, h1, h2, h3, h4, li { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
-    img#logo { float: left; border: 0px none black; width: 200px; }
-    header { display: block; }
-    hr { border-top: 1px solid #888; border-bottom: none; clear: both; }
-    ul { overflow: hidden; }
-</style>
 <header>
     <a href="//www.videolan.org/">
         <img src="/cone-soppera10.png" alt="VLC cone logo" id="logo" />


=====================================
nightlies.videolan.org/build/wince/.htaccess deleted
=====================================
@@ -1,2 +0,0 @@
-#this is the footer :
-IndexIgnore README.html


=====================================
nightlies.videolan.org/build/wince/HEADER.html
=====================================
@@ -1,10 +1,3 @@
-<style type="text/css">
-    p, h1, h2, h3, h4, li { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
-    img#logo { float: left; border: 0px none black; width: 200px; }
-    header { display: block; }
-    hr { border-top: 1px solid #888; border-bottom: none; clear: both; }
-    ul { overflow: hidden; }
-</style>
 <header>
     <a href="//www.videolan.org/">
         <img src="/cone-soppera10.png" alt="VLC cone logo" id="logo" />


=====================================
nightlies.videolan.org/custom.xslt
=====================================
@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+  <xsl:variable name="codefile" select="document(concat( $root, $path, '/HEADER.html'),/)"/>
+  <xsl:template match="/">
+
+    <html>
+      <head><title>Index of <xsl:value-of select="$path"/></title></head>
+      <link rel="stylesheet" type="text/css" href="/style.css" />
+      <body>
+        <xsl:copy-of select="$codefile/*"/>
+        <h1>Index of <xsl:value-of select="$path"/></h1><hr/>
+        <table border="0">
+          <tr>
+            <td><a href="../">../</a></td>
+          </tr>
+
+          <xsl:for-each select="list/*">
+            <xsl:sort order="descending" select="@mtime"/>
+
+            <xsl:variable name="name">
+              <xsl:choose>
+                <xsl:when test="local-name(.) = 'directory'"><xsl:value-of select="."/>/</xsl:when>
+                <xsl:when test="local-name(.) = 'file'"><xsl:value-of select="."/></xsl:when>
+              </xsl:choose>
+            </xsl:variable>
+
+            <xsl:variable name="size">
+              <xsl:if test="string-length(@size) > 0">
+                <xsl:if test="number(@size) > 0">
+                  <xsl:choose>
+                    <xsl:when test="round(@size div 1024) < 1"><xsl:value-of select="@size" /></xsl:when>
+                    <xsl:when test="round(@size div 1048576) < 1"><xsl:value-of select="format-number((@size div 1024), '0.0')" />K</xsl:when>
+                    <xsl:otherwise><xsl:value-of select="format-number((@size div 1048576), '0')" />M</xsl:otherwise>
+                  </xsl:choose>
+                </xsl:if>
+              </xsl:if>
+            </xsl:variable>
+
+            <xsl:variable name="date">
+              <xsl:variable name="mmm" select="substring(@mtime,6,2)" />
+              <xsl:variable name="month" >
+                <xsl:choose>
+                  <xsl:when test="$mmm = '01'">Jan</xsl:when>
+                  <xsl:when test="$mmm = '02'">Feb</xsl:when>
+                  <xsl:when test="$mmm = '03'">Mar</xsl:when>
+                  <xsl:when test="$mmm = '04'">Apr</xsl:when>
+                  <xsl:when test="$mmm = '05'">May</xsl:when>
+                  <xsl:when test="$mmm = '06'">Jun</xsl:when>
+                  <xsl:when test="$mmm = '07'">Jul</xsl:when>
+                  <xsl:when test="$mmm = '08'">Aug</xsl:when>
+                  <xsl:when test="$mmm = '09'">Sep</xsl:when>
+                  <xsl:when test="$mmm = '10'">Oct</xsl:when>
+                  <xsl:when test="$mmm = '11'">Nov</xsl:when>
+                  <xsl:when test="$mmm = '12'">Dec</xsl:when>
+                </xsl:choose>
+              </xsl:variable>
+              <xsl:value-of select="substring(@mtime,9,2)"/>-<xsl:value-of select="$month"/>-<xsl:value-of select="substring(@mtime,1,4)"/><xsl:text> </xsl:text>
+              <xsl:value-of select="substring(@mtime,12,2)"/>:<xsl:value-of select="substring(@mtime,15,2)"/>
+            </xsl:variable>
+
+            <tr>
+              <td><a href="{$name}"><xsl:value-of select="$name"/></a></td>
+              <td align="right"><xsl:value-of select="$size"/></td>
+              <td><xsl:value-of select="$date"/></td>
+            </tr>
+
+          </xsl:for-each>
+        </table>
+      </body>
+    </html>
+  </xsl:template>
+</xsl:stylesheet>


=====================================
nightlies.videolan.org/style.css
=====================================
@@ -0,0 +1,16 @@
+a, a:active {text-decoration: none; color: blue;}
+a:visited {color: #48468F;}
+a:hover, a:focus {text-decoration: underline; color: red;}
+body {background-color: #F5F5F5;}
+p, h1, h2, h3, h4, li {margin-bottom: 12px; font: family: -apple-system, BlinkMacSystemFont, sans-serif; }
+table {margin-left: 12px;}
+th, td { font: monospace; text-align: left;}
+th { font-weight: bold; padding-right: 14px; padding-bottom: 3px;}
+td {padding-right: 14px;}
+td.s, th.s {text-align: right;}
+div.list { background-color: white; border-top: 1px solid #646464; border-bottom: 1px solid #646464; padding-top: 10px; padding-bottom: 14px;}
+div.foot { font: monospace; color: #787878; padding-top: 4px;}
+ul { overflow: hidden; }
+img#logo { float: left; border: 0px none black; width: 200px; }
+header { display: block; }
+hr { border-top: 1px solid #888; border-bottom: none; clear: both; }



View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/compare/8921387f504583453935ec512c661dfeeafde717...08cbc046e902abc8d837b28c9258676c80f68d7f

-- 
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/compare/8921387f504583453935ec512c661dfeeafde717...08cbc046e902abc8d837b28c9258676c80f68d7f
You're receiving this email because of your account on code.videolan.org.


More information about the www-doc mailing list