aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-21 20:11:48 -0700
committerzotlabs <mike@macgirvin.com>2017-03-21 20:11:48 -0700
commitbedc39342514a37d311274210f30a4abd14284fa (patch)
tree09bdc14e4126ceff42ff2eb91638742cd482f4d1 /view/tpl
parentc1cc7bfc945e4da4150c9ed99dc11981767b4ccb (diff)
downloadvolse-hubzilla-bedc39342514a37d311274210f30a4abd14284fa.tar.gz
volse-hubzilla-bedc39342514a37d311274210f30a4abd14284fa.tar.bz2
volse-hubzilla-bedc39342514a37d311274210f30a4abd14284fa.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')
-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 de1105bbc..177fecad5 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 nav-stacked">
- <li><a href="{{$baseurl}}/photos/{{$nick}}" title="{{$title}}" >Recent Photos</a></li>
+ <li><a href="{{$baseurl}}/photos/{{$nick}}" title="{{$title}}" >{{$recent_photos}}</a></li>
{{if $albums}}
{{foreach $albums as $al}}
- {{if $al.text}}
- <li><a href="{{$baseurl}}/photos/{{$nick}}/album/{{$al.bin2hex}}"><span class="badge pull-right">{{$al.total}}</span>{{$al.text}}</a></li>
+ {{if $al.shorttext}}
+ <li><a href="{{$baseurl}}/photos/{{$nick}}/album/{{$al.bin2hex}}"><span class="badge pull-right">{{$al.total}}</span>{{$al.shorttext}}</a></li>
{{/if}}
{{/foreach}}
{{/if}}