app/views/fcrepo_admin/datastreams/history.html.erb in fcrepo_admin-0.4.1 vs app/views/fcrepo_admin/datastreams/history.html.erb in fcrepo_admin-0.5.0

- old
+ new

@@ -7,19 +7,14 @@ <th scope="col"><%= t("fcrepo_admin.datastream.profile.#{col}") %></th> <% end %> </tr> </thead> <tbody> - <% @datastream.versions.each_with_index do |ds, i| %> + <% @datastream.versions.each do |dsVersion| %> <tr> - <td><%= - link_to_unless i == 0, ds.profile["dsVersionID"], "#{fcrepo_admin.object_datastream_path(@object, ds.dsid)}?asOfDateTime=#{ds.asOfDateTime}" do |name| - "#{name} (current version)" - end - -%> - </td> + <td><%= link_to_datastream_version dsVersion %></td> <% datastream_history_columns.each do |col| %> - <td><%= ds.profile[col] %></td> + <td><%= dsVersion.profile[col] %></td> <% end %> <% end %> </tbody> </table>