aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-10-06 17:41:52 -0700
committerredmatrix <mike@macgirvin.com>2016-10-06 17:41:52 -0700
commitbf02e0428347350126abdd1726aa3e58c9ed63bb (patch)
treedc0e130c5288bf491516821ad5165afd1dd1acbf
parent48f70e55aa67339d4b5505b1e717ccc6d5651834 (diff)
downloadvolse-hubzilla-bf02e0428347350126abdd1726aa3e58c9ed63bb.tar.gz
volse-hubzilla-bf02e0428347350126abdd1726aa3e58c9ed63bb.tar.bz2
volse-hubzilla-bf02e0428347350126abdd1726aa3e58c9ed63bb.zip
merge usermenu and caret when using pro
-rwxr-xr-xview/tpl/nav.tpl7
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}}