projects
/
phpfspot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
issue32, hide navigation photo if user tag-selection result in empty view
[phpfspot.git]
/
templates
/
photo_index.tpl
diff --git
a/templates/photo_index.tpl
b/templates/photo_index.tpl
index 9ac74585afaf38509d3bfb99e2815eb9f0a85376..5b44449af8bc72cb17e76b02a479befaef5b5b4b 100644
(file)
--- 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 == "" }
<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" />
<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" />
{ 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 == "" }
</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" />
<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" />
{ else }
<a href="{$next_url}">
<img src="resources/arrow_right.png" alt="next photo" />