summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-08 12:30:46 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-08 12:30:46 +0000
commit8c399c253036c9520fb951eee149e492838d297e (patch)
treed825373dbd892f7ddd4f25220ffb259e618f00c8
parent7d9e5791c2e628361997ef5cb849ae4c75a2c395 (diff)
issue32, hide navigation photo if user tag-selection result in empty view
git-svn-id: file:///var/lib/svn/phpfspot/trunk@180 fa6a889d-dae6-447d-9e79-4ba9a3039384
-rw-r--r--templates/photo_index.tpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/photo_index.tpl b/templates/photo_index.tpl
index 9ac7458..5b44449 100644
--- a/templates/photo_index.tpl
+++ b/templates/photo_index.tpl
@@ -68,7 +68,9 @@
<tr>
<td style="text-align: left; width: 32px;">
{ if $previous_url == "" }
+ { if $count != 0 }
<img src="resources/arrow_left_gray.png" alt="first page reached" />
+ { /if }
{ else }
<a href="{$previous_url}">
<img src="resources/arrow_left.png" alt="previous photo" />
@@ -84,7 +86,9 @@
</td>
<td style="text-align: right; width: 32px;">
{ if $next_url == "" }
+ { if $count != 0 }
<img src="resources/arrow_right_gray.png" alt="last page reached" />
+ { /if }
{ else }
<a href="{$next_url}">
<img src="resources/arrow_right.png" alt="next photo" />