diff --git a/app/models/dmsf_file_revision.rb b/app/models/dmsf_file_revision.rb index d426ea75..3ab0f8ea 100644 --- a/app/models/dmsf_file_revision.rb +++ b/app/models/dmsf_file_revision.rb @@ -227,5 +227,10 @@ class DmsfFileRevision < ActiveRecord::Base def available_custom_fields DmsfFileRevisionCustomField.all end + + def iversion + parts = self.version.split '.' + parts.size == 2 ? parts[0].to_i * 1000 + parts[1].to_i : 0 + end end diff --git a/app/views/dmsf/_dir.html.erb b/app/views/dmsf/_dir.html.erb index 4f720c7e..eda59eb0 100644 --- a/app/views/dmsf/_dir.html.erb +++ b/app/views/dmsf/_dir.html.erb @@ -104,3 +104,5 @@ 0 0 +<%= subfolder.updated_at.to_i %> +0 diff --git a/app/views/dmsf/_file.html.erb b/app/views/dmsf/_file.html.erb index 6e2e67e7..3c22b7c2 100644 --- a/app/views/dmsf/_file.html.erb +++ b/app/views/dmsf/_file.html.erb @@ -178,4 +178,6 @@ <% end %> 1 -<%= file.last_revision.size %> \ No newline at end of file +<%= file.last_revision.size %> +<%= file.last_revision.updated_at.to_i %> +<%= file.last_revision.iversion %> \ No newline at end of file diff --git a/app/views/dmsf/show.html.erb b/app/views/dmsf/show.html.erb index e815517a..faa83b67 100644 --- a/app/views/dmsf/show.html.erb +++ b/app/views/dmsf/show.html.erb @@ -134,6 +134,8 @@ + + @@ -242,7 +244,9 @@ 'aoColumnDefs': [ { 'bSearchable': false, 'aTargets': [0, 7, 8, 9] }, { 'bSortable': false, 'aTargets': [0, 7, 8] }, - { 'iDataSort': 9, 'aTargets': [ 2 ] } + { 'iDataSort': 9, 'aTargets': [ 2 ] }, + { 'iDataSort': 10, 'aTargets': [ 3 ] }, + { 'iDataSort': 11, 'aTargets': [ 4 ] } ], 'fnInitComplete': function() { jQuery('div.controls').prependTo(jQuery('#browser_wrapper div.fg-toolbar')[0]);