]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Make Directory Listing template generic
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 19 Sep 2009 09:15:45 +0000 (21:15 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 19 Sep 2009 09:15:45 +0000 (21:15 +1200)
errors/Makefile.am
errors/errorpage.css
errors/list
errors/templates/ERR_DIR_LISTING [moved from errors/templates/ERR_FTP_LISTING with 86% similarity]

index 51b52e5b780ad2a56d23fcf295d1defc0f9c25ad..81c314b61ec3e1435c5e15107124a93801a70f3a 100644 (file)
@@ -28,7 +28,7 @@ ERROR_TEMPLATES =  \
        templates/ERR_UNSUP_HTTPVERSION \
        templates/ERR_READ_TIMEOUT \
        templates/ERR_ICAP_FAILURE \
-       templates/ERR_FTP_LISTING \
+       templates/ERR_DIR_LISTING \
        templates/ERR_FTP_FORBIDDEN \
        templates/ERR_ACCESS_DENIED \
        templates/ERR_FORWARDING_DENIED \
index d7ba8bf0cc63f0ffece37d06f21a4b4c23c6a1f3..8cfa802c8c649cb1f4b6d3e8db3f0f7b7e79a47a 100644 (file)
@@ -66,11 +66,11 @@ pre {
     font-family:sans-serif;
 }
 
-/* special event: FTP directory listing */
-#ftplisting tr.entry td.icon,td.filename,td.size,td.date {
+/* special event: FTP / Gopher directory listing */
+#dirlisting tr.entry td.icon,td.filename,td.size,td.date {
     border-bottom: groove;
 }
-#ftplisting td.size {
+#dirlisting td.size {
     width: 50px;
     text-align: right;
     padding-right: 5px;
index 87465ac508fa5cecf2493aea7dead617067505eb..01d0e8dac7f42397f8d68c9fc61440bdf3d8474a 100644 (file)
@@ -3,13 +3,13 @@ ERR_CACHE_ACCESS_DENIED
 ERR_CACHE_MGR_ACCESS_DENIED
 ERR_CANNOT_FORWARD
 ERR_CONNECT_FAIL
+ERR_DIR_LISTING
 ERR_DNS_FAIL
 ERR_ESI
 ERR_FORWARDING_DENIED
 ERR_FTP_DISABLED
 ERR_FTP_FAILURE
 ERR_FTP_FORBIDDEN
-ERR_FTP_LISTING
 ERR_FTP_NOT_FOUND
 ERR_FTP_PUT_CREATED
 ERR_FTP_PUT_ERROR
similarity index 86%
rename from errors/templates/ERR_FTP_LISTING
rename to errors/templates/ERR_DIR_LISTING
index 8d56843184abe9999737c622e54a402f69ce59c5..adb763d8d175f425e2ff7dae78c1f9c5b29b9cf8 100644 (file)
@@ -1,7 +1,7 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 <html><head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<title>FTP Directory: %U</title>
+<title>Directory: %U</title>
 <style type="text/css"><!-- 
  %l
 
@@ -11,7 +11,7 @@ body
  --></style>
 </head><body>
 <div id="titles">
-<h2>FTP Directory: <a href="/">%U</a>/</h2>
+<h2>Directory: <a href="/">%U</a>/</h2>
 </div>
 <hr>
 
@@ -22,7 +22,7 @@ body
 <pre>%z</pre>
 </blockquote>
 
-<table id="ftplisting" summary="FTP Directory Listing">
+<table id="dirlisting" summary="Directory Listing">
 <tr>
 <th><a href="../"><img border="0" src="/squid-internal-static/icons/anthony-dirup.gif" alt="Parent Directory"></a></th>
 <th nowrap="nowrap"><a href="../">Parent Directory</a> (<a href="/">Root Directory</a>)</th>