diff options
author | redmatrix <mike@macgirvin.com> | 2016-10-06 17:41:52 -0700 |
---|---|---|
committer | redmatrix <mike@macgirvin.com> | 2016-10-06 17:41:52 -0700 |
commit | bf02e0428347350126abdd1726aa3e58c9ed63bb (patch) | |
tree | dc0e130c5288bf491516821ad5165afd1dd1acbf | |
parent | 48f70e55aa67339d4b5505b1e717ccc6d5651834 (diff) | |
download | volse-hubzilla-bf02e0428347350126abdd1726aa3e58c9ed63bb.tar.gz volse-hubzilla-bf02e0428347350126abdd1726aa3e58c9ed63bb.tar.bz2 volse-hubzilla-bf02e0428347350126abdd1726aa3e58c9ed63bb.zip |
merge usermenu and caret when using pro
-rwxr-xr-x | view/tpl/nav.tpl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl index d08cb29ea..dfcd3f609 100755 --- a/view/tpl/nav.tpl +++ b/view/tpl/nav.tpl @@ -17,7 +17,14 @@ </button> {{/if}} {{if $userinfo}} + {{if $z_server_role == 'pro'}} + <div class="usermenu-head dropdown-toggle fakelink" data-toggle="dropdown"> + <img id="avatar" src="{{$userinfo.icon}}" alt="{{$userinfo.name}}"> + <span class="caret" id="usermenu-caret"></span> + </div> + {{else}} <img class="dropdown-toggle fakelink" data-toggle="dropdown" id="avatar" src="{{$userinfo.icon}}" alt="{{$userinfo.name}}"><span class="caret dropdown-toggle fakelink" data-toggle="dropdown" id="usermenu-caret"></span> + {{/if}} {{if $localuser}} <ul class="dropdown-menu" role="menu" aria-labelledby="avatar"> {{foreach $nav.usermenu as $usermenu}} |