i18n of invitation request view

This commit is contained in:
Carl Chenet 2017-02-05 23:27:35 +01:00
parent 5c57e78010
commit bec06e0cfc

View file

@ -1,19 +1,17 @@
<div class="box wide"> <div class="box wide">
<div class="legend"> <div class="legend">
Requested Invitations <%= t('.requestedinvtitle') %>
</div> </div>
<p> <p>
These persons have requested invitations and confirmed their e-mail <%= t('.requestedinvsummary') %>
addresses. If you recognize anyone, feel free to send them an invitation and
remove their request. Spam will be cleared out by a moderator.
</p> </p>
<table class="data" width="100%" cellspacing=0> <table class="data" width="100%" cellspacing=0>
<tr> <tr>
<th width="15%">Date/Time</th> <th width="15%"><%= t('.requestedinvdate') %></th>
<th width="20%">Name</th> <th width="20%"><%= t('.requestedinvname') %></th>
<th width="40%">Memo</th> <th width="40%"><%= t('.requestedinvmemo') %></th>
<th width="15%"></th> <th width="15%"></th>
<% if @user.is_moderator? %> <% if @user.is_moderator? %>
<th></th> <th></th>
@ -31,14 +29,12 @@
<td><%= raw ir.markeddown_memo %></td> <td><%= raw ir.markeddown_memo %></td>
<td><%= form_tag send_invitation_for_request_path do %> <td><%= form_tag send_invitation_for_request_path do %>
<%= hidden_field_tag "code", ir.code %> <%= hidden_field_tag "code", ir.code %>
<%= submit_tag "Send Invitation", :data => { :confirm => "Are " << <%= submit_tag t('.sendinvitation'), :data => { :confirm => "#{t('.confirminvitation')}" } %>
"you sure you want to invite this person and remove this request?" } %>
<% end %></td> <% end %></td>
<% if @user.is_moderator? %> <% if @user.is_moderator? %>
<td><%= form_tag delete_invitation_request_path do %> <td><%= form_tag delete_invitation_request_path do %>
<%= hidden_field_tag "code", ir.code %> <%= hidden_field_tag "code", ir.code %>
<%= submit_tag "Delete", :data => { :confirm => "Are you sure " << <%= submit_tag t('.deleteinvitation'), :data => { :confirm => "#{t('.confirmdelete')}" } %>
"you want to delete this request?" } %>
<% end %></td> <% end %></td>
<% end %> <% end %>
</tr> </tr>
@ -47,7 +43,7 @@
<% if @invitation_requests.count == 0 %> <% if @invitation_requests.count == 0 %>
<tr> <tr>
<td colspan=<%= @user.is_moderator?? 5 : 4 %> align="center"><span <td colspan=<%= @user.is_moderator?? 5 : 4 %> align="center"><span
class="na">No invitation requests</span></td> class="na"><%= t('.noinvitation') %></span></td>
</tr> </tr>
<% end %> <% end %>
</table> </table>