]> git.openstreetmap.org Git - rails.git/commitdiff
Use "Deleted at/by" instead of "Edited at/by" for deletes
authorTom Hughes <tom@compton.nu>
Thu, 5 May 2011 18:50:57 +0000 (19:50 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 5 May 2011 19:25:58 +0000 (20:25 +0100)
app/views/browse/_common_details.html.erb
config/locales/en.yml

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 %>
index 7b341e7f452a01dd780f2a7c15ece999fdc7bf83..8fb853c589d1119e123d458d75a2596afa2d5e5d 100644 (file)
@@ -141,6 +141,8 @@ en:
     common_details:
       edited_at: "Edited at:"
       edited_by: "Edited by:"
+      deleted_at: "Deleted at:"
+      deleted_by: "Deleted by:"
       version: "Version:"
       in_changeset: "In changeset:"
       changeset_comment: "Comment:"