]> gitweb.fluxo.info Git - puppet-apache.git/commitdiff
Enabling stylesheet and markdown icon on autoindex
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 15 Nov 2012 16:53:54 +0000 (14:53 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 15 Nov 2012 16:53:54 +0000 (14:53 -0200)
files/icons/style.css
templates/autoindex.conf.erb

index d0e264615653b0eba82da1112e81c780011508c2..e5e22198c9ccd779fa5c2cceb11c2efadeeddaab 100644 (file)
@@ -1,162 +1,7 @@
-
-/**
- * Repos Style (c) 2007 www.reposstyle.com
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * 
- *    http://www.apache.org/licenses/LICENSE-2.0
- * 
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/* reposstyle.com version 1.5 */
-html {
-       filter: expression(document.execCommand("BackgroundImageCache", false, true));
-       margin: 0;
-       padding: 0;
-}
 body {
-       margin: 0;
-       padding: 0;
-       font-family: Verdana, Helvetica, Arial, sans-serif;
-       font-size: 82.5%;
-       color: #111;
-}
-h2 {
-       font-weight: normal;
-       font-size: 1.4em;
-       color: #444444;
-       margin-left: 5px;
-}
-a,
-a:visited {
-       text-decoration: none;
-       color: #111;
-}
-a:hover {
-       text-decoration: underline;
-}
-h2 a {
-       color: #667799 !important;
-}
-img {
-       border: none;
-}
-div#files {
-       margin: 0 auto 0 auto;
-       width: 99%;
-}
-/* command = commandbar button, <a> is  active, <span> is greyed out */
-.command {
-       background-position: left center;
-       background-repeat: no-repeat;
-       font-size: 82.5%;
-       margin-left: 5px;
-       margin-right: 5px;
-       margin-top: 0px;
-       margin-bottom: 0px;
-       padding-left: 20px;
-       padding-right: 0.2em;
-       padding-top: 0.2em;
-       padding-bottom: 0.2em;
-}
-/* common page elements, may also be layouted for each tool */
-#commandbar {
-       min-width: 980px;
-       height: 1.5em;
-       background-color: #ECF1EF;
-       padding: 3px;
-       border-bottom: 1px solid #CCCCCC;
-}
-/* command = commandbar button, <a> is  active, <span> is greyed out */
-#commandbar a {
-       background-position: left center;
-       background-repeat: no-repeat;
-       font-size: 82.5%;
-       margin-left: 0.4em;
-       margin-right: 0px;
-       margin-top: 0px;
-       margin-bottom: 0px;
-       padding-left: 22px;
-       padding-right: 1.0em;
-       padding-top: 0.4em;
-       padding-bottom: 0.6em;
-       line-height: 1.5em;
-       color: #555555;
-       border-right: 2px dotted #D5E0E0;
-}
-/* common commands */
-#commandbar #parent {
-       background-image: url('/index-style/icons/parent.gif');
-}
-#commandbar #refresh {
-       background-image: url('/index-style/icons/refresh.gif');
-}
-#commandbar #home {
-       background-image: url('/index-style/icons/home.gif');
-}
-#footer {
-       margin-top: 1.5em;
-       padding: 0.2em 0 0.2em 0;
-       width: 100%;
-       clear: both;
-       border-top: 1px solid #CCCCCC;
-       border-bottom: 1px solid #CCCCCC;
-       background-color: #F4F4F4;
-       color: #999999;
-       font-size: 85.5%;
-       text-align: right;
-}
-#footer a {
-       color: #667799;
-}
-#footer a.last {
-       padding-right: 10px;
+  font-family: "lucida grande","sans serif";
 }
+
 table {
-       width: 100%;
-       border-collapse: collapse;
-}
-table tr {
-       padding: 0;
-       margin: 0;
-}
-table td,
-table th {
-    padding: 1px 0 1px 0;
-    margin: 0;
-    text-align: left;
-}
-table td {
-       border: none;
-    border-bottom: 1px solid #FFFFFF;
-    background: #fff url(/index-style/icons/rowbackground.png) repeat-x;
-       text-align: right;
-}
-table td.name {
-       text-align: left;
-}
-table tr.hover td {
-    border-bottom: 1px dashed #CCCC99;
-}
-table th.icon {
-       width: 16px;
-       height: 16px;
-       padding-right: 5px;
-}
-table th.date {
-       text-align: right;
-       width: 180px;
-}
-table th.size {
-       text-align: right;
-       width: 80px;
-}
-table hr {
-       display: none;
+  font-family: "monospace";
 }
index 6fc4829951ccfa9e92e1273478d406009b5f73db..9f55b09ac7e01335158735725946f43438a33925 100644 (file)
@@ -19,6 +19,7 @@ IndexOptions IconHeight=16
 IndexOptions NameWidth=*
 IndexOptions Charset=UTF-8 
 IndexOrderDefault Descending Name
+IndexHeadInsert "<link href=\"/icons/style.css\" media=\"screen,projection\" type=\"text/css\" rel=\"stylesheet\" />"
 #HeaderName /icons/header.html
 #ReadmeName /icons/footer.html
 
@@ -39,7 +40,7 @@ AddIcon /icons/app.png .app
 AddIcon /icons/movie.png .mov .mpg .mpeg .m2v .avi .divx .xvid .swf .wmv .wma .wm* .ram .rm .ogm .ogv
 
 # Documents
-AddIcon /icons/txt.png .txt .text .log
+AddIcon /icons/txt.png .txt .text .log .mdwn
 AddIcon /icons/html.png .htm .html .xml .php .shtml .xhtml
 AddIcon /icons/odt.png .odt .rtf .doc .ps .pdf
 AddIcon /icons/ods.png .ods .xls