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">
<a href="{config.relative_path}/user/{userslug}">
<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>
<!-- ENDIF !banned -->
</a>
<div class="row usercard-info">
@ -23,7 +25,7 @@
<span class="human-readable-number">{reputation}</span>
</div>
<button class="btn-morph fab">
<button class="btn-morph fab <!-- IF banned --> hide<!-- ENDIF banned -->">
<span>
<span class="s1"></span>
<span class="s2"></span>

@ -10,7 +10,7 @@
<i component="user/status" class="fa fa-circle status {status}" title="[[global:{status}]]"></i>
<!-- 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 class="s1"></span>
<span class="s2"></span>

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

Loading…
Cancel
Save