From d192bcad65852bb9225a368d1bf42b8918ae6022 Mon Sep 17 00:00:00 2001 From: marijus Date: Mon, 27 Oct 2014 21:31:54 +0100 Subject: do not reload page for edit album and some minor cleanup --- view/tpl/album_edit.tpl | 2 +- view/tpl/photo_album.tpl | 5 +++-- view/tpl/photo_top.tpl | 2 +- view/tpl/photo_view.tpl | 24 +++++++++++------------- 4 files changed, 16 insertions(+), 17 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/album_edit.tpl b/view/tpl/album_edit.tpl index 61653c47c..84a47378b 100755 --- a/view/tpl/album_edit.tpl +++ b/view/tpl/album_edit.tpl @@ -3,7 +3,7 @@ - +
diff --git a/view/tpl/photo_album.tpl b/view/tpl/photo_album.tpl index 0c878b950..0a26fc367 100755 --- a/view/tpl/photo_album.tpl +++ b/view/tpl/photo_album.tpl @@ -1,7 +1,7 @@
- {{if $edit}} - + {{if $album_edit.1}} + {{/if}} {{if $can_post}} @@ -12,6 +12,7 @@
+{{$album_edit.1}}
{{foreach $photos as $photo}} {{include file="photo_top.tpl"}} diff --git a/view/tpl/photo_top.tpl b/view/tpl/photo_top.tpl index ee21e5cce..a86aa7f80 100755 --- a/view/tpl/photo_top.tpl +++ b/view/tpl/photo_top.tpl @@ -1,4 +1,4 @@ - {{if $photo.album.name}}{{$photo.album.name}}{{elseif $photo.desc}}{{$photo.desc}}{{else}}{{$photo.alt}}{{/if}} + {{if $photo.album.name}}{{$photo.album.name}}{{elseif $photo.desc}}{{$photo.desc}}{{elseif $photo.alt}}{{$photo.alt}}{{else}}{{$photo.unknown}}{{/if}} diff --git a/view/tpl/photo_view.tpl b/view/tpl/photo_view.tpl index 5e3518c9f..786145691 100755 --- a/view/tpl/photo_view.tpl +++ b/view/tpl/photo_view.tpl @@ -31,7 +31,7 @@
- - +
+
- + -{{$comments}} + {{$comments}} -{{if $commentbox}} -
- {{$commentbox}} -
-{{/if}} + {{if $commentbox}} +
+ {{$commentbox}} +
+ {{/if}} -
+
-- cgit v1.2.3