summaryrefslogtreecommitdiff
path: root/share/templates
diff options
context:
space:
mode:
authorPaul Buetow (scorpion) <paul@buetow.org>2015-04-12 11:21:14 +0100
committerPaul Buetow (scorpion) <paul@buetow.org>2015-04-12 11:21:14 +0100
commit730acbf982b9c2a3556b56ec7e7f4092d6485939 (patch)
treeb014d1054f63b10d6758326abdf9d0a70bffbdcb /share/templates
parentaa811eea0552976ff378a96f154fb4951be1e1c5 (diff)
Introducing the recursive: argument. Can also specify FIND_ARGS. Can also specify ORIGINAL_BASEPATH.
Diffstat (limited to 'share/templates')
-rw-r--r--share/templates/default/view.tmpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/share/templates/default/view.tmpl b/share/templates/default/view.tmpl
index 04962b5..8894a76 100644
--- a/share/templates/default/view.tmpl
+++ b/share/templates/default/view.tmpl
@@ -10,5 +10,12 @@ cat <<END
<br />
<br />
<a href="${backhref}/${photos_dir}/${photo}">Direct link</a>
+END
+if [ "${ORIGINAL_BASEPATH}x" != x ]; then
+cat <<END
+<a href="${ORIGINAL_BASEPATH}/${photo}">Original</a>
+END
+fi
+cat <<END
<h3>${photo}</h3>
END