From: Tom Hughes Date: Tue, 15 Sep 2009 22:03:09 +0000 (+0000) Subject: Display the changeset comment (if any) as part of the description of X-Git-Tag: live~6664 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/6fafe7f309800b9ae8144eb723a89b81fee1d757?ds=inline Display the changeset comment (if any) as part of the description of any object in the data browser. Closes #2282. --- diff --git a/app/views/browse/_common_details.html.erb b/app/views/browse/_common_details.html.erb index 179b22f60..0c486e0a7 100644 --- a/app/views/browse/_common_details.html.erb +++ b/app/views/browse/_common_details.html.erb @@ -20,4 +20,11 @@ <%= link_to common_details.changeset_id, :action => :changeset, :id => common_details.changeset_id %> +<% if common_details.changeset.tags['comment'] %> + + <%= t 'browse.common_details.changeset_comment' %> + <%= auto_link(h(common_details.changeset.tags['comment'])) %> + +<% end %> + <%= render :partial => "tag_details", :object => common_details %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 012457a70..f774b4598 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -120,6 +120,7 @@ en: edited_by: "Edited by:" version: "Version:" in_changeset: "In changeset:" + changeset_comment: "Comment:" containing_relation: entry: "Relation {{relation_name}}" entry_role: "Relation {{relation_name}} (as {{relation_role}})" diff --git a/config/locales/is.yml b/config/locales/is.yml index 73f498c3f..c951b0aab 100644 --- a/config/locales/is.yml +++ b/config/locales/is.yml @@ -120,6 +120,7 @@ is: edited_by: "Breytt af:" version: "Útgáfa:" in_changeset: "Í breytingarsetti:" + changeset_comment: "Athugasemd:" containing_relation: entry: "Venslunum {{relation_name}}" entry_role: "Venslunum {{relation_name}} (sem „{{relation_role}}“)"