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/theme/redbasic/css/style.css | 4 ++-- view/tpl/photo_album.tpl | 26 +++++++++++++++++++++++--- view/tpl/photo_top.tpl | 2 +- 3 files changed, 26 insertions(+), 6 deletions(-) (limited to 'view') diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 9bbf996d5..7df70e714 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -75,12 +75,12 @@ a:hover, .fakelink:hover { color: $link_colour; text-decoration: underline; } a.btn-default { color: #333; - + font-weight: normal; } a.btn-success { color: #fff; -font-weight: normal; + font-weight: normal; } input[type="text"], 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