summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2009-09-13 03:48:24 +0530
committerMukund Sivaraman <muks@banu.com>2009-09-13 03:48:24 +0530
commitf3e06436b5a6081e71c6308ca136e9ff1fa1ebef (patch)
treea64b12c3e7bc60ca4ec085c030237f8a662e4b79 /data
parentd7296318a0f5d7ee06b0358911889b64599f9ce5 (diff)
downloadtinyproxy-f3e06436b5a6081e71c6308ca136e9ff1fa1ebef.tar.gz
tinyproxy-f3e06436b5a6081e71c6308ca136e9ff1fa1ebef.zip
doc: Move templates to data/templates/ directory
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am2
-rw-r--r--data/templates/Makefile.am7
-rw-r--r--data/templates/debug.html56
-rw-r--r--data/templates/default.html23
-rw-r--r--data/templates/stats.html69
5 files changed, 157 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
new file mode 100644
index 0000000..4a03cc5
--- /dev/null
+++ b/data/Makefile.am
@@ -0,0 +1,2 @@
+SUBDIRS = \
+ templates
diff --git a/data/templates/Makefile.am b/data/templates/Makefile.am
new file mode 100644
index 0000000..5c2f1be
--- /dev/null
+++ b/data/templates/Makefile.am
@@ -0,0 +1,7 @@
+TEMPLATES = \
+ debug.html \
+ default.html \
+ stats.html
+
+EXTRA_DIST = \
+ $(TEMPLATES)
diff --git a/data/templates/debug.html b/data/templates/debug.html
new file mode 100644
index 0000000..6ee3367
--- /dev/null
+++ b/data/templates/debug.html
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+
+<head>
+<title>{errno} {cause}</title>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+</head>
+
+<body>
+
+<h1>{cause}</h1>
+
+<p>{detail}</p>
+
+<p>Here are the error variables:</p>
+
+<dl>
+
+ <dt>request</dt>
+ <dd>{request}</dd>
+
+ <dt>cause</dt>
+ <dd>{cause}</dd>
+
+ <dt>clientip</dt>
+ <dd>{clientip}</dd>
+
+ <dt>clienthost</dt>
+ <dd>{clienthost}</dd>
+
+ <dt>version</dt>
+ <dd>{version}</dd>
+
+ <dt>package</dt>
+ <dd>{package}</dd>
+
+ <dt>date</dt>
+ <dd>{date}</dd>
+
+ <dt>detail</dt>
+ <dd>{detail}</dd>
+
+ <dt>url</dt>
+ <dd>{url}</dd>
+
+</dl>
+
+<hr />
+
+<p><em>Generated by <a href="{website}">{package}</a> version {version}.</em></p>
+
+</body>
+
+</html>
diff --git a/data/templates/default.html b/data/templates/default.html
new file mode 100644
index 0000000..67354b7
--- /dev/null
+++ b/data/templates/default.html
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+
+<head>
+<title>{errno} {cause}</title>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+</head>
+
+<body>
+
+<h1>{cause}</h1>
+
+<p>{detail}</p>
+
+<hr />
+
+<p><em>Generated by <a href="{website}">{package}</a> version {version}.</em></p>
+
+</body>
+
+</html>
diff --git a/data/templates/stats.html b/data/templates/stats.html
new file mode 100644
index 0000000..7179859
--- /dev/null
+++ b/data/templates/stats.html
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+
+<head>
+<title>{package} version {version} run-time statistics</title>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+<style type="text/css" media="screen">
+<!--/*--><![CDATA[<!--*/
+
+th, td
+{
+ text-align: left;
+ padding: 0.5em;
+ border: 1px solid gray;
+}
+
+/*]]>*/-->
+</style>
+
+</head>
+
+<body>
+
+<h1>{package} version {version} run-time statistics</h1>
+
+<table>
+
+<tr>
+ <th>Name</th>
+ <th>Value</th>
+</tr>
+
+<tr>
+ <td>Number of open connections</td>
+ <td>{opens}</td>
+</tr>
+
+<tr>
+ <td>Number of requests</td>
+ <td>{reqs}</td>
+</tr>
+
+<tr>
+ <td>Number of bad connections</td>
+ <td>{badconns}</td>
+</tr>
+
+<tr>
+ <td>Number of denied connections</td>
+ <td>{deniedconns}</td>
+</tr>
+
+<tr>
+ <td>Number of refused connections due to high load</td>
+ <td>{refusedconns}</td>
+</tr>
+
+</table>
+
+<hr />
+
+<p><em>Generated by <a href="{website}">{package}</a> version {version}.</em></p>
+
+</body>
+
+</html>