only show invitation queue link if there are any pending

This commit is contained in:
joshua stein 2014-01-06 14:48:47 -06:00
parent ce495470c6
commit 831b576325

View file

@ -105,9 +105,8 @@
<div id="footer">
<a href="/moderations">Moderation Log</a>
<% if @user %>
<a href="/invitations">Invitation Queue<%= (iqc =
InvitationRequest.verified_count) == 0 ? "" : " (#{iqc})" %></a>
<% if @user && (iqc = InvitationRequest.verified_count) > 0 %>
<a href="/invitations">Invitation Queue (<%= iqc %>)</a>
<% end %>
<a href="/privacy">Privacy</a>
<a href="/about">About</a>