diff options
| author | Paul Buetow (mars.fritz.box) <paul@buetow.org> | 2014-02-16 12:20:53 +0100 |
|---|---|---|
| committer | Paul Buetow (mars.fritz.box) <paul@buetow.org> | 2014-02-16 12:20:53 +0100 |
| commit | a0f45c9e97570bea83001c8106b5847723e8a863 (patch) | |
| tree | c914acb0020adeb0c993e7b24358f74ff4b1f746 /share/templates/default | |
| parent | 6ed44b35ccf07ac02790ef9b7cb15104e4612b40 (diff) | |
move templates into sub directory
Diffstat (limited to 'share/templates/default')
| -rw-r--r-- | share/templates/default/footer.tmpl | 16 | ||||
| -rw-r--r-- | share/templates/default/header-first-add.tmpl | 3 | ||||
| -rw-r--r-- | share/templates/default/header.tmpl | 24 | ||||
| -rw-r--r-- | share/templates/default/index.tmpl | 12 | ||||
| -rw-r--r-- | share/templates/default/next.tmpl | 4 | ||||
| -rw-r--r-- | share/templates/default/prev.tmpl | 4 | ||||
| -rw-r--r-- | share/templates/default/preview.tmpl | 3 | ||||
| -rw-r--r-- | share/templates/default/redirect.tmpl | 9 | ||||
| -rw-r--r-- | share/templates/default/view.tmpl | 12 |
9 files changed, 87 insertions, 0 deletions
diff --git a/share/templates/default/footer.tmpl b/share/templates/default/footer.tmpl new file mode 100644 index 0000000..0de72ce --- /dev/null +++ b/share/templates/default/footer.tmpl @@ -0,0 +1,16 @@ +cat <<END +</p> +<hr /> +END + +if [ "${TARBALL_INCLUDE}" = 'yes' ]; then +cat <<END +Download all photos in original size <a href='../${TARBALL_NAME}'>here</a><br /><br /> +END +fi + +cat <<END +Page generated at $(date) using Bash, ImageMagick and Git at $(uname); <photoalbum@mx.buetow.org> +</body> +</html> +END diff --git a/share/templates/default/header-first-add.tmpl b/share/templates/default/header-first-add.tmpl new file mode 100644 index 0000000..c6eed3a --- /dev/null +++ b/share/templates/default/header-first-add.tmpl @@ -0,0 +1,3 @@ +cat <<END +<p align='right'> +END diff --git a/share/templates/default/header.tmpl b/share/templates/default/header.tmpl new file mode 100644 index 0000000..b21a200 --- /dev/null +++ b/share/templates/default/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/default/index.tmpl b/share/templates/default/index.tmpl new file mode 100644 index 0000000..2ec99d7 --- /dev/null +++ b/share/templates/default/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/default/next.tmpl b/share/templates/default/next.tmpl new file mode 100644 index 0000000..a7f7c76 --- /dev/null +++ b/share/templates/default/next.tmpl @@ -0,0 +1,4 @@ +cat <<END +<br /> +<a href='${next}.html'>Next $MAXPREVIEWS pictures</a> +END diff --git a/share/templates/default/prev.tmpl b/share/templates/default/prev.tmpl new file mode 100644 index 0000000..bdabae2 --- /dev/null +++ b/share/templates/default/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/default/preview.tmpl b/share/templates/default/preview.tmpl new file mode 100644 index 0000000..a5e4bdc --- /dev/null +++ b/share/templates/default/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/default/redirect.tmpl b/share/templates/default/redirect.tmpl new file mode 100644 index 0000000..8edfe1c --- /dev/null +++ b/share/templates/default/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/default/view.tmpl b/share/templates/default/view.tmpl new file mode 100644 index 0000000..abf577a --- /dev/null +++ b/share/templates/default/view.tmpl @@ -0,0 +1,12 @@ +cat <<END +<a href="${num}-$((i-1)).html"><<<</a> +<a href="page-${num}.html#$photo">Thumbnails</a> +<a href="${num}-$((i+1)).html">>>></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 |
