Ticket #2282: changeset-comments-in-history.patch

File changeset-comments-in-history.patch, 1.6 KB (added by avar, 10 years ago)

Add changeset comments to object / object history pages

  • app/views/browse/_common_details.html.erb

     
    2020  <td><%= link_to common_details.changeset_id, :action => :changeset, :id => common_details.changeset_id %></td>
    2121</tr>
    2222
     23<% if comment = Changeset.find(common_details.changeset_id).tags['comment'] %>
     24<tr>
     25  <th><%= t 'browse.common_details.changeset_comment' %></th>
     26  <td><%= auto_link(h(comment)) %></td>
     27</tr>
     28<% end %>
     29
    2330<%= render :partial => "tag_details", :object => common_details %>
  • config/locales/en.yml

     
    120120      edited_by: "Edited by:"
    121121      version: "Version:"
    122122      in_changeset: "In changeset:"
     123      changeset_comment: "Comment:"
    123124    containing_relation:
    124125      entry: "Relation {{relation_name}}"
    125126      entry_role: "Relation {{relation_name}} (as {{relation_role}})"
  • config/locales/is.yml

     
    120120      edited_by: "Breytt af:"
    121121      version: "Útgáfa:"
    122122      in_changeset: "Í breytingarsetti:"
     123      changeset_comment: "Athugasemd:"
    123124    containing_relation:
    124125      entry: "Venslunum {{relation_name}}"
    125126      entry_role: "Venslunum {{relation_name}} (sem „{{relation_role}}“)"