From c1c2214b477223e87547f06f1dc1c0c9e7fe47d4 Mon Sep 17 00:00:00 2001 From: marijus Date: Wed, 10 Sep 2014 17:10:39 +0200 Subject: photo justification --- view/tpl/photo_album.tpl | 10 +++------- view/tpl/photo_top.tpl | 9 +++------ view/tpl/photos_recent.tpl | 2 +- 3 files changed, 7 insertions(+), 14 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/photo_album.tpl b/view/tpl/photo_album.tpl index a63bff78c..b5ea14c14 100755 --- a/view/tpl/photo_album.tpl +++ b/view/tpl/photo_album.tpl @@ -1,7 +1,3 @@ -
- - {{$imgalt}} -

{{$desc}}

-
-
-
+ + {{if $desc}}{{$desc}}{{else}}{{$imgalt}}{{/if}} + diff --git a/view/tpl/photo_top.tpl b/view/tpl/photo_top.tpl index 944928f85..4a106c30d 100755 --- a/view/tpl/photo_top.tpl +++ b/view/tpl/photo_top.tpl @@ -1,7 +1,4 @@ -
- - {{$photo.alt}} - - -
+ + {{$photo.album.name}} + diff --git a/view/tpl/photos_recent.tpl b/view/tpl/photos_recent.tpl index 386979de5..8eaa208b1 100755 --- a/view/tpl/photos_recent.tpl +++ b/view/tpl/photos_recent.tpl @@ -3,7 +3,7 @@ {{$upload.0}} {{/if}} -
+
{{foreach $photos as $photo}} {{include file="photo_top.tpl"}} {{/foreach}} -- cgit v1.2.3