aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/photo_albums.tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-21 20:11:48 -0700
committerMario Vavti <mario@mariovavti.com>2017-03-29 14:09:19 +0200
commitb03cd330e5fe4ede362d77aa2269a3d0dccde62d (patch)
tree680b2a383c81ed1ae090513a02b75e509d7580c1 /view/tpl/photo_albums.tpl
parent542fa4a08c3f58d60c729ee166a2c4dc92f7524e (diff)
downloadvolse-hubzilla-b03cd330e5fe4ede362d77aa2269a3d0dccde62d.tar.gz
volse-hubzilla-b03cd330e5fe4ede362d77aa2269a3d0dccde62d.tar.bz2
volse-hubzilla-b03cd330e5fe4ede362d77aa2269a3d0dccde62d.zip
begin the process of using the relevant attach directory/path for photo albums instead of an album basename which may not be unique. Created an 'ellipsify()' function to shorten long names and keep the beginning and end intact
Diffstat (limited to 'view/tpl/photo_albums.tpl')
-rwxr-xr-xview/tpl/photo_albums.tpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/view/tpl/photo_albums.tpl b/view/tpl/photo_albums.tpl
index 4c0bd5a1b..c565ccaf1 100755
--- a/view/tpl/photo_albums.tpl
+++ b/view/tpl/photo_albums.tpl
@@ -1,11 +1,11 @@
<div id="side-bar-photos-albums" class="widget">
<h3>{{$title}}</h3>
<ul class="nav nav-pills flex-column">
- <li class="nav-item"><a class="nav-link"href="{{$baseurl}}/photos/{{$nick}}" title="{{$title}}" >Recent Photos</a></li>
+ <li class="nav-item"><a class="nav-link" href="{{$baseurl}}/photos/{{$nick}}" title="{{$title}}" >{{$recent_photos}}</a></li>
{{if $albums}}
{{foreach $albums as $al}}
- {{if $al.text}}
- <li class="nav-item"><a class="nav-link" href="{{$baseurl}}/photos/{{$nick}}/album/{{$al.bin2hex}}"><span class="badge badge-default float-right">{{$al.total}}</span>{{$al.text}}</a></li>
+ {{if $al.shorttext}}
+ <li class="nav-item"><a class="nav-link" href="{{$baseurl}}/photos/{{$nick}}/album/{{$al.bin2hex}}"><span class="badge badge-default float-right">{{$al.total}}</span>{{$al.shorttext}}</a></li>
{{/if}}
{{/foreach}}
{{/if}}