aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/profile_advanced.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-02-29 22:01:13 +0100
committerMario Vavti <mario@mariovavti.com>2016-02-29 22:01:13 +0100
commitd27a627c4f65ca67bcc0f46fb830368c713043cd (patch)
tree7311b1ee2e397e16f3cb1a80ab5a83fbc35474f1 /view/tpl/profile_advanced.tpl
parent55ab5360d984700e3145a5933cd1275cfb54b76c (diff)
downloadvolse-hubzilla-d27a627c4f65ca67bcc0f46fb830368c713043cd.tar.gz
volse-hubzilla-d27a627c4f65ca67bcc0f46fb830368c713043cd.tar.bz2
volse-hubzilla-d27a627c4f65ca67bcc0f46fb830368c713043cd.zip
simplify profile edit button(s) and make it useful for multiple profiles
Diffstat (limited to 'view/tpl/profile_advanced.tpl')
-rwxr-xr-xview/tpl/profile_advanced.tpl15
1 files changed, 13 insertions, 2 deletions
diff --git a/view/tpl/profile_advanced.tpl b/view/tpl/profile_advanced.tpl
index 780626cf9..3d09b762d 100755
--- a/view/tpl/profile_advanced.tpl
+++ b/view/tpl/profile_advanced.tpl
@@ -12,8 +12,19 @@
<i class="icon-thumbs-up-alt" title="{{$profile.likethis}}"></i>
</button>
{{/if}}
- {{if $edit}}
- <a href="{{$edit.link}}" class="btn btn-primary btn-xs"><i class="icon-pencil"></i>&nbsp;{{$edit.label}}</a>
+ {{if $editmenu.multi}}
+ <a class="btn btn-primary btn-xs dropdown-toggle" data-toggle="dropdown" href="#" ><i class="icon-pencil"></i>&nbsp;{{$editmenu.edit.3}}</a>
+ <ul class="dropdown-menu" role="menu">
+ {{foreach $editmenu.menu.entries as $e}}
+ <li>
+ <a href="profiles/{{$e.id}}"><img class="dropdown-menu-img-xs" src='{{$e.photo}}'>{{$e.profile_name}}<div class='clear'></div></a>
+ </li>
+ {{/foreach}}
+ <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}}
+ <a class="btn btn-primary btn-xs" href="{{$editmenu.edit.0}}" ><i class="icon-pencil"></i>&nbsp;{{$editmenu.edit.3}}</a>
{{/if}}
</div>
<h2>{{$title}}</h2>