don't show follow and chat for banned users

main
pichalite 9 years ago
parent 04eb6bc5d8
commit 802b1e8bc0

@ -9,8 +9,10 @@
<div class="usercard-body"> <div class="usercard-body">
<a href="{config.relative_path}/user/{userslug}"> <a href="{config.relative_path}/user/{userslug}">
<span class="usercard-name"><!-- IF fullname -->{fullname}<!-- ELSE -->{username}<!-- ENDIF fullname --></span><br /> <span class="usercard-name"><!-- IF fullname -->{fullname}<!-- ELSE -->{username}<!-- ENDIF fullname --></span><br />
<span class="usercard-username">@{username}</span> <span class="usercard-username"><!-- IF !banned -->@{username}<!-- ELSE -->[[user:banned]]<!-- ENDIF !banned --></span>
<!-- IF !banned -->
<i component="user/status" class="fa fa-circle status {status}" title="[[global:{status}]]"></i> <i component="user/status" class="fa fa-circle status {status}" title="[[global:{status}]]"></i>
<!-- ENDIF !banned -->
</a> </a>
<div class="row usercard-info"> <div class="row usercard-info">
@ -23,7 +25,7 @@
<span class="human-readable-number">{reputation}</span> <span class="human-readable-number">{reputation}</span>
</div> </div>
<button class="btn-morph fab"> <button class="btn-morph fab <!-- IF banned --> hide<!-- ENDIF banned -->">
<span> <span>
<span class="s1"></span> <span class="s1"></span>
<span class="s2"></span> <span class="s2"></span>

@ -10,7 +10,7 @@
<i component="user/status" class="fa fa-circle status {status}" title="[[global:{status}]]"></i> <i component="user/status" class="fa fa-circle status {status}" title="[[global:{status}]]"></i>
<!-- IF !isSelf --> <!-- IF !isSelf -->
<button class="btn-morph fab <!-- IF isFollowing -->heart<!-- ELSE -->plus<!-- ENDIF isFollowing -->"> <button class="btn-morph fab <!-- IF isFollowing -->heart<!-- ELSE -->plus<!-- ENDIF isFollowing --><!-- IF banned --> hide<!-- ENDIF banned -->">
<span> <span>
<span class="s1"></span> <span class="s1"></span>
<span class="s2"></span> <span class="s2"></span>

@ -5,10 +5,12 @@
<ul class="dropdown-menu dropdown-menu-right"> <ul class="dropdown-menu dropdown-menu-right">
<!-- IF !isSelf --> <!-- IF !isSelf -->
<!-- IF !config.disableChat --> <!-- IF !config.disableChat -->
<!-- IF !banned -->
<li> <li>
<a component="account/chat" href="#">[[user:chat_with, {username}]]</a> <a component="account/chat" href="#">[[user:chat_with, {username}]]</a>
</li> </li>
<li class="divider"></li> <li class="divider"></li>
<!-- ENDIF !banned -->
<!-- ENDIF !config.disableChat --> <!-- ENDIF !config.disableChat -->
<!-- ENDIF !isSelf --> <!-- ENDIF !isSelf -->
<li> <li>

Loading…
Cancel
Save