summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorPaul C. Buetow (mars.fritz.box) <paul@buetow.org>2014-05-07 14:38:28 +0200
committerPaul C. Buetow (mars.fritz.box) <paul@buetow.org>2014-05-07 14:38:28 +0200
commit92eb329acc9e5b1905786d96be6fe151093c98ac (patch)
tree43953a8876e69403ad199cf61b5f30f724d14783 /share
parent31e2b7c8a9d4776f5443dfe0dcc0cd037a52d29a (diff)
can create album overview page
Diffstat (limited to 'share')
-rw-r--r--share/templates/default/header.tmpl4
-rw-r--r--share/templates/default/index-preview.tmpl6
2 files changed, 8 insertions, 2 deletions
diff --git a/share/templates/default/header.tmpl b/share/templates/default/header.tmpl
index 3c0a2e7..0d9606a 100644
--- a/share/templates/default/header.tmpl
+++ b/share/templates/default/header.tmpl
@@ -1,5 +1,5 @@
-if [ "$IS_SUB" = yes ]; then
- TOP="<br /><a href='${BACKHREF}/index.html'>Go to top</a>"
+if [ "$IS_SUBALBUM" = yes ]; then
+ TOP="<br /><br /><a href='${BACKHREF}/index.html'>Go to Album overview</a>"
fi
cat <<END
<html>
diff --git a/share/templates/default/index-preview.tmpl b/share/templates/default/index-preview.tmpl
new file mode 100644
index 0000000..909f59d
--- /dev/null
+++ b/share/templates/default/index-preview.tmpl
@@ -0,0 +1,6 @@
+cat <<END
+<h2>Album ${ALBUM}</h2>
+<a name='${ALBUM}' href='${ALBUM}/index.html'>
+ <img border='0' src='${BACKHREF}/${RANDOM_THUMB}' />
+</a>
+END