summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorPaul Buetow (mars.fritz.box) <paul@buetow.org>2013-12-27 12:50:20 +0100
committerPaul Buetow (mars.fritz.box) <paul@buetow.org>2013-12-27 12:50:20 +0100
commit475ca77785db30a8b208f7057cf448a421d3fc13 (patch)
tree2ce7896547198bdfdb8267d86f1adb100a87e2bd /share
parent8be53a7b5a51798e40ac75bbc1542f165d7d1ea2 (diff)
initial debian package version
Diffstat (limited to 'share')
-rw-r--r--share/templates/footer.tmpl7
-rw-r--r--share/templates/header-first-add.tmpl3
-rw-r--r--share/templates/header.tmpl24
-rw-r--r--share/templates/index.tmpl12
-rw-r--r--share/templates/next.tmpl4
-rw-r--r--share/templates/prev.tmpl4
-rw-r--r--share/templates/preview.tmpl3
-rw-r--r--share/templates/redirect.tmpl9
-rw-r--r--share/templates/view.tmpl12
9 files changed, 78 insertions, 0 deletions
diff --git a/share/templates/footer.tmpl b/share/templates/footer.tmpl
new file mode 100644
index 0000000..f917970
--- /dev/null
+++ b/share/templates/footer.tmpl
@@ -0,0 +1,7 @@
+cat <<END
+</p>
+<hr />
+Page generated at $(date) using Bash, ImageMagick and Git at $(uname); &lt;photoalbum@mx.buetow.org&gt;
+</body>
+</html>
+END
diff --git a/share/templates/header-first-add.tmpl b/share/templates/header-first-add.tmpl
new file mode 100644
index 0000000..c6eed3a
--- /dev/null
+++ b/share/templates/header-first-add.tmpl
@@ -0,0 +1,3 @@
+cat <<END
+<p align='right'>
+END
diff --git a/share/templates/header.tmpl b/share/templates/header.tmpl
new file mode 100644
index 0000000..b21a200
--- /dev/null
+++ b/share/templates/header.tmpl
@@ -0,0 +1,24 @@
+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>
+$TITLE
+<hr />
+END
diff --git a/share/templates/index.tmpl b/share/templates/index.tmpl
new file mode 100644
index 0000000..2ec99d7
--- /dev/null
+++ b/share/templates/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/next.tmpl b/share/templates/next.tmpl
new file mode 100644
index 0000000..a7f7c76
--- /dev/null
+++ b/share/templates/next.tmpl
@@ -0,0 +1,4 @@
+cat <<END
+<br />
+<a href='${next}.html'>Next $MAXPREVIEWS pictures</a>
+END
diff --git a/share/templates/prev.tmpl b/share/templates/prev.tmpl
new file mode 100644
index 0000000..bdabae2
--- /dev/null
+++ b/share/templates/prev.tmpl
@@ -0,0 +1,4 @@
+cat <<END
+<a href='${prev}.html'>Previous $MAXPREVIEWS pictures</a>
+<p align='right'>
+END
diff --git a/share/templates/preview.tmpl b/share/templates/preview.tmpl
new file mode 100644
index 0000000..a5e4bdc
--- /dev/null
+++ b/share/templates/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/redirect.tmpl b/share/templates/redirect.tmpl
new file mode 100644
index 0000000..8edfe1c
--- /dev/null
+++ b/share/templates/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/view.tmpl b/share/templates/view.tmpl
new file mode 100644
index 0000000..abf577a
--- /dev/null
+++ b/share/templates/view.tmpl
@@ -0,0 +1,12 @@
+cat <<END
+<a href="${num}-$((i-1)).html">&lt;&lt;&lt;</a>
+<a href="page-${num}.html#$photo">Thumbnails</a>
+<a href="${num}-$((i+1)).html">&gt;&gt;&gt;</a>
+<br />
+<br />
+<a href="${num}-$((i+1)).html"><img border='0' src='../photos/$photo' /></a>
+<br />
+<br />
+<a href="../photos/$photo">Direct link</a>
+<h3>$photo</h3>
+END