summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2011-06-04 19:04:08 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2011-06-04 19:04:08 +0200
commit0c2ec4f8a357b8add78bce44a298225c00c4e16e (patch)
treef5a09896d32db4979e992dcb848e3aa8710a3110 /templates
parentb960b2a4579bf5cd25124191ff37c5ad30a529ff (diff)
downloadcataract-0c2ec4f8a357b8add78bce44a298225c00c4e16e.tar.xz
Port Go Up link to the new defines system
Diffstat (limited to 'templates')
-rw-r--r--templates/default.xml6
-rw-r--r--templates/template_album.html4
-rw-r--r--templates/template_index.html4
3 files changed, 10 insertions, 4 deletions
diff --git a/templates/default.xml b/templates/default.xml
index 826133a..c6cbd70 100644
--- a/templates/default.xml
+++ b/templates/default.xml
@@ -101,6 +101,12 @@
<define name="BORDER_STYLE" value="border_single" />
<!-- show EXIF table in single photo view (comment out to hide it) -->
<define name="SHOW_EXIF_TABLE" />
+ <!-- show "Go Up..." links if not top-level -->
+ <define name="SHOW_GO_UP" />
+
+ <!-- Other defines set by the generator:
+ IS_ROOT - indicates whether the index/album page is a main (root) page
+ -->
</theme>
<!-- Here you can define another theme, with different templates etc.
diff --git a/templates/template_album.html b/templates/template_album.html
index 9f31fb3..3d0af4f 100644
--- a/templates/template_album.html
+++ b/templates/template_album.html
@@ -24,9 +24,9 @@
<div class="master_content">
<!-- ## Description -->
<div class="description">
- <!-- $(BEGIN_GO_UP) -->
+ <!-- $(ifdef(SHOW_GO_UP)) --><!-- $(ifndef(IS_ROOT)) -->
<div class="desc_go_up">:. <a href="$(GO_UP_LINK)">Go Up</a></div>
- <!-- $(END_GO_UP) -->
+ <!-- $(endif(IS_ROOT)) --><!-- $(endif(SHOW_GO_UP)) -->
<div class="desc_title"><!-- $(TITLE) --></div>
<div class="desc_text"><!-- $(DESCRIPTION) --></div>
</div>
diff --git a/templates/template_index.html b/templates/template_index.html
index 01de113..1565a4a 100644
--- a/templates/template_index.html
+++ b/templates/template_index.html
@@ -24,9 +24,9 @@
<div class="master_content">
<!-- ## Description -->
<div class="description">
- <!-- $(BEGIN_GO_UP) -->
+ <!-- $(ifdef(SHOW_GO_UP)) --><!-- $(ifndef(IS_ROOT)) -->
<div class="desc_go_up">:. <a href="$(GO_UP_LINK)">Go Up</a></div>
- <!-- $(END_GO_UP) -->
+ <!-- $(endif(IS_ROOT)) --><!-- $(endif(SHOW_GO_UP)) -->
<div class="desc_title"><!-- $(TITLE) --></div>
<div class="desc_text"><!-- $(DESCRIPTION) --></div>
</div>