add a link 'ask an invitation' on the main page while not logged in. closes #2

This commit is contained in:
Carl Chenet 2017-04-27 09:53:21 +02:00
parent e2116b379a
commit c5635f2b5e
3 changed files with 5 additions and 0 deletions

View file

@ -59,6 +59,9 @@
<% end %>
<% links.merge!({ "/search" => t('.searchlink') }) %>
<% if !@user %>
<% links.merge!({ "/invitations/request" => t('.invitationlink') }) %>
<% end %>
<% if @cur_url.present? && !links.keys.include?(@cur_url) &&
@heading.present? %>

View file

@ -51,6 +51,7 @@ en:
yourthreadslink: "Your Threads"
submitstorylink: "Submit Story"
searchlink: "Search"
invitationlink: "Ask for an invitation"
filterslink: "Filters"
newmessagelink:
one: "1 New Message"

View file

@ -63,6 +63,7 @@ fr:
yourthreadslink: "Vos sujets"
submitstorylink: "Soumettre"
searchlink: "Recherche"
invitationlink: "Demander une invitation"
filterslink: "Filtres"
newmessagelink:
one: "Nouveau message"