From df70c2c9b62365c9b0feb8a482aef1ac626fabd6 Mon Sep 17 00:00:00 2001 From: marijus Date: Thu, 2 Oct 2014 21:04:50 +0200 Subject: more work on photos --- view/tpl/photo_album.tpl | 26 +++++++++++++++++++++++--- view/tpl/photo_top.tpl | 2 +- 2 files changed, 24 insertions(+), 4 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/photo_album.tpl b/view/tpl/photo_album.tpl index b5ea14c14..d23f7e817 100755 --- a/view/tpl/photo_album.tpl +++ b/view/tpl/photo_album.tpl @@ -1,3 +1,23 @@ - - {{if $desc}}{{$desc}}{{else}}{{$imgalt}}{{/if}} - +
+
+ {{if $edit}} + + {{/if}} + + {{if $can_post}} +  {{$upload.0}} + {{/if}} +
+

{{$album}}

+ +
+
+
+ {{foreach $photos as $photo}} + {{include file="photo_top.tpl"}} + {{/foreach}} +
+
+
+ +
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 @@ - {{$photo.album.name}} + {{if $photo.album.name}}{{$photo.album.name}}{{elseif $photo.desc}}{{$photo.desc}}{{else}}{{$photo.alt}}{{/if}} -- cgit v1.2.3