diff options
author | marijus <mario@mariovavti.com> | 2014-09-26 12:29:07 +0200 |
---|---|---|
committer | marijus <mario@mariovavti.com> | 2014-09-26 12:29:07 +0200 |
commit | b948ab595592e4a43f684a49dc681a755f8c8673 (patch) | |
tree | c3f7413eff7458bc7d311519754ba416525276ba /view/tpl | |
parent | 1e7fbac6c1a26e6ae5be18ce3e5332f222bc2977 (diff) | |
download | volse-hubzilla-b948ab595592e4a43f684a49dc681a755f8c8673.tar.gz volse-hubzilla-b948ab595592e4a43f684a49dc681a755f8c8673.tar.bz2 volse-hubzilla-b948ab595592e4a43f684a49dc681a755f8c8673.zip |
some more work on photos - work in progress
Diffstat (limited to 'view/tpl')
-rwxr-xr-x | view/tpl/photo_albums.tpl | 27 | ||||
-rwxr-xr-x | view/tpl/photos_recent.tpl | 16 |
2 files changed, 21 insertions, 22 deletions
diff --git a/view/tpl/photo_albums.tpl b/view/tpl/photo_albums.tpl index 7ff4a8cc0..27f156c68 100755 --- a/view/tpl/photo_albums.tpl +++ b/view/tpl/photo_albums.tpl @@ -1,15 +1,16 @@ <div id="side-bar-photos-albums" class="widget"> -<h3><a href="{{$baseurl}}/photos/{{$nick}}" title="{{$title}}" >{{$title}}</a></h3> -{{if $albums}} -<ul> -{{foreach $albums as $al}} -{{if $al.text}} -<li><a href="{{$baseurl}}/photos/{{$nick}}/album/{{$al.bin2hex}}">{{$al.text}}</a> ({{$al.total}})</li> -{{/if}} -{{/foreach}} -</ul> -{{/if}} -{{if $upload}} -<div id="photo-albums-upload-link"><a href="{{$baseurl}}/photos/{{$nick}}/upload" title="{{$upload}}">{{$upload}}</a></div> -{{/if}} + <h3><a href="{{$baseurl}}/photos/{{$nick}}" title="{{$title}}" >{{$title}}</a></h3> + {{if $albums}} + <ul class="nav nav-pills nav-stacked"> + {{foreach $albums as $al}} + {{if $al.text}} + <li><a href="{{$baseurl}}/photos/{{$nick}}/album/{{$al.bin2hex}}">{{$al.text}}<span class="badge pull-right">{{$al.total}}</span></a></li> + {{/if}} + {{/foreach}} + + {{/if}} + {{if $upload}} + <li><a href="{{$baseurl}}/photos/{{$nick}}/upload" title="{{$upload}}">{{$upload}}</a></li> + {{/if}} + </ul> </div> diff --git a/view/tpl/photos_recent.tpl b/view/tpl/photos_recent.tpl index fce518cfe..b4094512c 100755 --- a/view/tpl/photos_recent.tpl +++ b/view/tpl/photos_recent.tpl @@ -1,13 +1,11 @@ -<h3>{{$title}}</h3> -{{if $can_post}} -<a id="photo-top-upload-link" href="{{$upload.1}}">{{$upload.0}}</a> -{{/if}} - +<div class="section-title-wrapper"> + <h3>{{$title}}</h3> +</div> <div id="photo-album-contents"> -{{foreach $photos as $photo}} - {{include file="photo_top.tpl"}} -{{/foreach}} -<div id="page-end"></div> + {{foreach $photos as $photo}} + {{include file="photo_top.tpl"}} + {{/foreach}} + <div id="page-end"></div> </div> <div class="photos-end"></div> <script>$(document).ready(function() { loadingPage = false; justifyPhotos(); });</script> |