summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorPaul Buetow (mars.fritz.box) <paul@buetow.org>2014-02-16 12:19:04 +0100
committerPaul Buetow (mars.fritz.box) <paul@buetow.org>2014-02-16 12:19:04 +0100
commit6ed44b35ccf07ac02790ef9b7cb15104e4612b40 (patch)
tree75a46455100de7bac8eb1fc4b743f78becba6ea5 /share
parent63ff5cd89794ee580532894db03916fadcee502d (diff)
Add minimal templates. Fix default config file
Diffstat (limited to 'share')
-rw-r--r--share/templates-minimal/footer.tmpl4
-rw-r--r--share/templates-minimal/header-first-add.tmpl3
-rw-r--r--share/templates-minimal/header.tmpl22
-rw-r--r--share/templates-minimal/index.tmpl12
-rw-r--r--share/templates-minimal/next.tmpl4
-rw-r--r--share/templates-minimal/prev.tmpl3
-rw-r--r--share/templates-minimal/preview.tmpl3
-rw-r--r--share/templates-minimal/redirect.tmpl9
-rw-r--r--share/templates-minimal/view.tmpl3
9 files changed, 63 insertions, 0 deletions
diff --git a/share/templates-minimal/footer.tmpl b/share/templates-minimal/footer.tmpl
new file mode 100644
index 0000000..6473552
--- /dev/null
+++ b/share/templates-minimal/footer.tmpl
@@ -0,0 +1,4 @@
+cat <<END
+</body>
+</html>
+END
diff --git a/share/templates-minimal/header-first-add.tmpl b/share/templates-minimal/header-first-add.tmpl
new file mode 100644
index 0000000..f11a346
--- /dev/null
+++ b/share/templates-minimal/header-first-add.tmpl
@@ -0,0 +1,3 @@
+cat <<END
+<p align='left'>
+END
diff --git a/share/templates-minimal/header.tmpl b/share/templates-minimal/header.tmpl
new file mode 100644
index 0000000..8b20b53
--- /dev/null
+++ b/share/templates-minimal/header.tmpl
@@ -0,0 +1,22 @@
+cat <<END
+<html>
+<head>
+<title>$TITLE</title>
+<style type="text/css">
+ body {
+ background-color: #000000;
+ color: #FFFFFF;
+ font-family: verdana, sans-serif;
+ }
+ a {
+ color: #FFFFFF;
+ }
+ hr {
+ color: #FFFFFF;
+ background-color: #FFFFFF;
+ height: 1px;
+ }
+</style>
+</head>
+<body>
+END
diff --git a/share/templates-minimal/index.tmpl b/share/templates-minimal/index.tmpl
new file mode 100644
index 0000000..2ec99d7
--- /dev/null
+++ b/share/templates-minimal/index.tmpl
@@ -0,0 +1,12 @@
+cat <<END
+<html>
+<head>
+<title>$TITLE</title>
+<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1">
+<meta http-equiv="refresh" content="0; URL=./html/page-1.html">
+</head>
+<body>
+Redirecting to Page 1
+</body>
+</html>
+END
diff --git a/share/templates-minimal/next.tmpl b/share/templates-minimal/next.tmpl
new file mode 100644
index 0000000..a7f7c76
--- /dev/null
+++ b/share/templates-minimal/next.tmpl
@@ -0,0 +1,4 @@
+cat <<END
+<br />
+<a href='${next}.html'>Next $MAXPREVIEWS pictures</a>
+END
diff --git a/share/templates-minimal/prev.tmpl b/share/templates-minimal/prev.tmpl
new file mode 100644
index 0000000..64d15d8
--- /dev/null
+++ b/share/templates-minimal/prev.tmpl
@@ -0,0 +1,3 @@
+cat <<END
+<a href='${prev}.html'>Previous $MAXPREVIEWS pictures</a>
+END
diff --git a/share/templates-minimal/preview.tmpl b/share/templates-minimal/preview.tmpl
new file mode 100644
index 0000000..a5e4bdc
--- /dev/null
+++ b/share/templates-minimal/preview.tmpl
@@ -0,0 +1,3 @@
+cat <<END
+<a name='$photo' href='../html/${num}-${i}.html'><img border='0' src='../thumbs/$photo' /></a>
+END
diff --git a/share/templates-minimal/redirect.tmpl b/share/templates-minimal/redirect.tmpl
new file mode 100644
index 0000000..8edfe1c
--- /dev/null
+++ b/share/templates-minimal/redirect.tmpl
@@ -0,0 +1,9 @@
+cat <<END
+<html>
+<head>
+<meta http-equiv='refresh' content='0; url=${redirectpage}.html'>
+</head>
+<body>
+</body>
+</html>
+END
diff --git a/share/templates-minimal/view.tmpl b/share/templates-minimal/view.tmpl
new file mode 100644
index 0000000..c93a82b
--- /dev/null
+++ b/share/templates-minimal/view.tmpl
@@ -0,0 +1,3 @@
+cat <<END
+<a href="${num}-$((i+1)).html"><img border='0' src='../photos/$photo' /></a>
+END