]> git.openstreetmap.org Git - rails.git/blob - app/views/note/mine.html.erb
d818243247c6b96cab8d369495c7bf98e280fe76
[rails.git] / app / views / note / mine.html.erb
1 <h1><%= @heading %></h1>
2 <p><%= @description %></p>
3
4 <%= render :partial => 'notes_paging_nav' %>
5
6 <table id="note_list" cellpadding="3">
7   <tr>
8     <th></th>
9     <th><%= t'note.mine.id' %></th>
10     <th><%= t'changeset.changesets.user' %></th>
11     <th><%= t'changeset.changesets.comment' %></th>
12     <th><%= t'changeset.changesets.saved_at' %></th>
13     <th><%= t'note.mine.last_changed' %></th>
14   </tr>
15 <% @notes.each do |note| %>
16   <tr<% if note.author != @user2 %> bgcolor="#EEEEEE"<% end %>>
17     <td>
18       <% if note.status == "closed" %>
19         <%= image_tag("closed_note_marker.png", :alt => 'closed') %>
20       <% else %>
21         <%= image_tag("open_note_marker.png", :alt => 'open') %>
22       <% end %>
23     </td>
24     <td><%= link_to note.id.to_s, :controller => "browse", :action => "note", :id => note.id %></td>
25     <% if note.author.nil? %> 
26       <td> <%= note.author_name %> </td> 
27     <% else %> 
28       <td><%= link_to h(note.author_name), :controller => "user", :action => "view", :display_name => note.author_name %></td>
29     <% end %>
30     <td> <%= htmlize note.comments.first.body  %> </td> 
31     <td><%= l note.created_at %></td>
32     <td><%= l note.updated_at %></td>
33   </tr>
34 <% end %>
35 </table>
36
37 <%= render :partial => 'notes_paging_nav' %>