diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-03-01 14:41:14 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-03-01 14:41:14 +0100 |
commit | 492609d20bd04ff76efb3406766d714d7384c6d0 (patch) | |
tree | 83670acd243a60a13a5ce30fc523eb5e877a0630 | |
parent | 0f76af261c9be9c7e69af1ea6309ec8cb5d7a536 (diff) | |
download | volse-hubzilla-492609d20bd04ff76efb3406766d714d7384c6d0.tar.gz volse-hubzilla-492609d20bd04ff76efb3406766d714d7384c6d0.tar.bz2 volse-hubzilla-492609d20bd04ff76efb3406766d714d7384c6d0.zip |
do not show empty buttons if not logged in
-rwxr-xr-x | view/tpl/profile_advanced.tpl | 2 | ||||
-rwxr-xr-x | view/tpl/profile_vcard.tpl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/view/tpl/profile_advanced.tpl b/view/tpl/profile_advanced.tpl index 3d09b762d..0f968a53f 100755 --- a/view/tpl/profile_advanced.tpl +++ b/view/tpl/profile_advanced.tpl @@ -23,7 +23,7 @@ <li><a href="profile_photo" >{{$editmenu.menu.chg_photo}}</a></li> {{if $editmenu.menu.cr_new}}<li><a href="profiles/new" id="profile-listing-new-link">{{$editmenu.menu.cr_new}}</a></li>{{/if}} </ul> - {{else}} + {{elseif $editmenu}} <a class="btn btn-primary btn-xs" href="{{$editmenu.edit.0}}" ><i class="icon-pencil"></i> {{$editmenu.edit.3}}</a> {{/if}} </div> diff --git a/view/tpl/profile_vcard.tpl b/view/tpl/profile_vcard.tpl index 3c3bfda5a..943cc6339 100755 --- a/view/tpl/profile_vcard.tpl +++ b/view/tpl/profile_vcard.tpl @@ -19,7 +19,7 @@ {{if $editmenu.menu.cr_new}}<li><a href="profiles/new" id="profile-listing-new-link">{{$editmenu.menu.cr_new}}</a></li>{{/if}} </ul> </div> - {{else}} + {{elseif $editmenu}} <a class="profile-edit-side-link" href="{{$editmenu.edit.0}}" ><i class="icon-pencil" title="{{$editmenu.edit.1}}"></i></a> {{/if}} {{/if}} |