Display the changeset comment (if any) as part of the description of
authorTom Hughes <tom@compton.nu>
Tue, 15 Sep 2009 22:03:09 +0000 (22:03 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 15 Sep 2009 22:03:09 +0000 (22:03 +0000)
any object in the data browser. Closes #2282.

app/views/browse/_common_details.html.erb
config/locales/en.yml
config/locales/is.yml

index 179b22f60813add46ec6a752d627e7bc404b46e9..0c486e0a716c789d94116e44282d52689d7294f0 100644 (file)
   <td><%= link_to common_details.changeset_id, :action => :changeset, :id => common_details.changeset_id %></td>
 </tr>
 
+<% if common_details.changeset.tags['comment'] %>
+  <tr>
+    <th><%= t 'browse.common_details.changeset_comment' %></th>
+    <td><%= auto_link(h(common_details.changeset.tags['comment'])) %></td>
+  </tr>
+<% end %>
+
 <%= render :partial => "tag_details", :object => common_details %>
index 012457a70161bf0e5277cfcef43818339c41b6ce..f774b45983260cd591ea0ec1fbb45d12902c7f6c 100644 (file)
@@ -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}})"
index 73f498c3f38b596048779ae2ae6e1da6588a0814..c951b0aab26347e500c206f3035f9b81f133e18a 100644 (file)
@@ -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}}“)"