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 %> <% end %>
<% links.merge!({ "/search" => t('.searchlink') }) %> <% links.merge!({ "/search" => t('.searchlink') }) %>
<% if !@user %>
<% links.merge!({ "/invitations/request" => t('.invitationlink') }) %>
<% end %>
<% if @cur_url.present? && !links.keys.include?(@cur_url) && <% if @cur_url.present? && !links.keys.include?(@cur_url) &&
@heading.present? %> @heading.present? %>

View file

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

View file

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