layout: link to hats (for all) when no hat requests present

This commit is contained in:
Carl Chenet 2017-05-11 12:35:33 +02:00
parent 70f16e4dd3
commit 05743959cf
3 changed files with 4 additions and 0 deletions

View file

@ -126,6 +126,8 @@
<% if @user && @user.is_moderator? &&
(hrc = HatRequest.count) > 0 %>
<a href="/hats/requests"><%= t('.hatrequestlink') %> (<%= hrc %>)</a>
<% else %>
<a href="/hats"><%= t('.hatslink') %></a>
<% end %>
<a href="/privacy"><%= t('.privacylink') %></a>
<a href="/about"><%= t('.aboutlink') %></a>

View file

@ -64,6 +64,7 @@ en:
invitationqueuelink: "Invitation Queue"
chatlink: "Chat"
hatrequestlink: "Hat Requests"
hatslink: "Hats"
privacylink: "Privacy"
aboutlink: "About"
blog: "Blog"

View file

@ -76,6 +76,7 @@ fr:
invitationqueuelink: "File d'invitation"
chatlink: "Chat"
hatrequestlink: "Porter le chapeau"
hatslink: "Chapeaux"
privacylink: "Confidentialité"
aboutlink: "À propos"
blog: "Blog"