only show invitation queue link if there are any pending
This commit is contained in:
parent
ce495470c6
commit
831b576325
|
@ -105,9 +105,8 @@
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<a href="/moderations">Moderation Log</a>
|
<a href="/moderations">Moderation Log</a>
|
||||||
<% if @user %>
|
<% if @user && (iqc = InvitationRequest.verified_count) > 0 %>
|
||||||
<a href="/invitations">Invitation Queue<%= (iqc =
|
<a href="/invitations">Invitation Queue (<%= iqc %>)</a>
|
||||||
InvitationRequest.verified_count) == 0 ? "" : " (#{iqc})" %></a>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<a href="/privacy">Privacy</a>
|
<a href="/privacy">Privacy</a>
|
||||||
<a href="/about">About</a>
|
<a href="/about">About</a>
|
||||||
|
|
Loading…
Reference in a new issue