aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/photo_top.tpl
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-10-02 21:04:50 +0200
committermarijus <mario@mariovavti.com>2014-10-02 21:04:50 +0200
commitdf70c2c9b62365c9b0feb8a482aef1ac626fabd6 (patch)
tree65eced380be60f8d89939052635aa5ae7f27e5d6 /view/tpl/photo_top.tpl
parenta932c20dc419784518be0a03b697ee6b9322f455 (diff)
downloadvolse-hubzilla-df70c2c9b62365c9b0feb8a482aef1ac626fabd6.tar.gz
volse-hubzilla-df70c2c9b62365c9b0feb8a482aef1ac626fabd6.tar.bz2
volse-hubzilla-df70c2c9b62365c9b0feb8a482aef1ac626fabd6.zip
more work on photos
Diffstat (limited to 'view/tpl/photo_top.tpl')
-rwxr-xr-xview/tpl/photo_top.tpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/tpl/photo_top.tpl b/view/tpl/photo_top.tpl
index 4a106c30d..ee21e5cce 100755
--- a/view/tpl/photo_top.tpl
+++ b/view/tpl/photo_top.tpl
@@ -1,4 +1,4 @@
<a href="{{$photo.link}}" id="photo-top-photo-link-{{$photo.id}}" title="{{$photo.title}}">
- <img src="{{$photo.src}}" alt="{{$photo.album.name}}" title="{{$photo.title}}" id="photo-top-photo-{{$photo.id}}" />
+ <img src="{{$photo.src}}" alt="{{if $photo.album.name}}{{$photo.album.name}}{{elseif $photo.desc}}{{$photo.desc}}{{else}}{{$photo.alt}}{{/if}}" title="{{$photo.title}}" id="photo-top-photo-{{$photo.id}}" />
</a>