]> git.openstreetmap.org Git - rails.git/blob - app/views/message/inbox.html.erb
Added a confirmation step to the process of granting and revoking user roles.
[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 <p><%= t'message.inbox.you_have', :new_count => @user.new_messages.size, :old_count => (@user.messages.size -  @user.new_messages.size) %></p> 
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"><%= 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 %>