]> git.openstreetmap.org Git - rails.git/blob - app/views/message/inbox.html.erb
Mark some strings that shouldn't be escaped as raw
[rails.git] / app / views / message / inbox.html.erb
1 <h2><%= t'message.inbox.my_inbox'%>/<%= link_to t('message.inbox.outbox'), url_for(:controller => "user", :action => "outbox", :id => @user.display_name) %></h2>
2
3 <%= render :partial => "message_count" %>
4
5 <% if @user.messages.size > 0 %>
6   <div id="messages">
7     <table class="messages">
8       <tr>
9         <th><%= t'message.inbox.from' %></th>
10         <th><%= t'message.inbox.subject' %></th>
11         <th><%= t'message.inbox.date' %></th>
12         <th></th>
13         <th></th>
14         <th></th>
15       </tr>
16       <%= render :partial => "message_summary", :collection => @user.messages %>
17     </table>
18   </div>
19 <% else %>
20   <div id="messages"><%= raw(t'message.inbox.no_messages_yet', :people_mapping_nearby_link => link_to(t('message.inbox.people_mapping_nearby'), :controller => 'user', :action => 'view', :display_name => @user.display_name)) %></div>
21 <% end %>