]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/_common_details.html.erb
Get the per-user note list view working again
[rails.git] / app / views / browse / _common_details.html.erb
index b6960b9c4b0b3533aad31d27d008e9ade1a5907c..07b44a94a7d1515c537a7d2c1c2bc346115b199a 100644 (file)
@@ -1,11 +1,19 @@
 <tr>
-  <th><%= t 'browse.common_details.edited_at' %></th>
+  <% if common_details.visible? %>
+    <th><%= t 'browse.common_details.edited_at' %></th>
+  <% else %>
+    <th><%= t 'browse.common_details.deleted_at' %></th>
+  <% end %>
   <td><%= l common_details.timestamp %></td>
 </tr>
 
 <% if common_details.changeset.user.data_public? %>
   <tr>
-    <th><%= t 'browse.common_details.edited_by' %></th>
+    <% if common_details.visible? %>
+      <th><%= t 'browse.common_details.edited_by' %></th>
+    <% else %>
+      <th><%= t 'browse.common_details.deleted_by' %></th>
+    <% end %>
     <td><%= link_to h(common_details.changeset.user.display_name), :controller => "user", :action => "view", :display_name => common_details.changeset.user.display_name %></td>
   </tr>
 <% end %>