From: Tom Hughes Date: Thu, 5 May 2011 18:50:57 +0000 (+0100) Subject: Use "Deleted at/by" instead of "Edited at/by" for deletes X-Git-Tag: live~6859^2~17 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/d4c8c3ad1829756f80f25e3b22a4a6df2615af2d Use "Deleted at/by" instead of "Edited at/by" for deletes --- diff --git a/app/views/browse/_common_details.html.erb b/app/views/browse/_common_details.html.erb index b6960b9c4..07b44a94a 100644 --- a/app/views/browse/_common_details.html.erb +++ b/app/views/browse/_common_details.html.erb @@ -1,11 +1,19 @@ - <%= t 'browse.common_details.edited_at' %> + <% if common_details.visible? %> + <%= t 'browse.common_details.edited_at' %> + <% else %> + <%= t 'browse.common_details.deleted_at' %> + <% end %> <%= l common_details.timestamp %> <% if common_details.changeset.user.data_public? %> - <%= t 'browse.common_details.edited_by' %> + <% if common_details.visible? %> + <%= t 'browse.common_details.edited_by' %> + <% else %> + <%= t 'browse.common_details.deleted_by' %> + <% end %> <%= link_to h(common_details.changeset.user.display_name), :controller => "user", :action => "view", :display_name => common_details.changeset.user.display_name %> <% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 7b341e7f4..8fb853c58 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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:"