diff --git a/static/js/documentInfoView.leftovers.js b/static/js/documentInfoView.leftovers.js index f1b4761..7b3721e 100644 --- a/static/js/documentInfoView.leftovers.js +++ b/static/js/documentInfoView.leftovers.js @@ -486,8 +486,35 @@ pandora.ui.documentInfoView = function(data, isMixed) { .appendTo($statistics); }); + // Rights Level ------------------------------------------------------------ + + var $rightsLevel = $('
'); + $('
') + .css({marginBottom: '4px'}) + .append(formatKey('Rights Level', 'statistics')) + .append($rightsLevel) + .appendTo($statistics); + renderRightsLevel(); + + // Links + if (!isMultiple) { + $('
') + .css({marginTop: '16px', marginBottom: '16px', pointer: 'cursor'}) + .append('') + .append( + Ox.Theme.formatColor(null, 'gradient') + .html('View Document') + .css({poiner: 'cursor'}) + .on({ + click: function() { + pandora.UI.set({documentView: 'view'}) + } + }) + ) + .appendTo($statistics); + } // User and Groups --------------------------------------------------------- - if (!isMultiple && pandora.hasCapability('canManageUsers', pandora.user.level) { + if (!isMultiple && pandora.hasCapability('canManageUsers', pandora.user.level)) { ['user', 'groups'].forEach(function(key) { var $input; (canEdit || data[key] && data[key].length) && $('
') @@ -553,33 +580,7 @@ pandora.ui.documentInfoView = function(data, isMixed) { ) .appendTo($statistics); } - // Rights Level ------------------------------------------------------------ - var $rightsLevel = $('
'); - $('
') - .css({marginBottom: '4px'}) - .append(formatKey('Rights Level', 'statistics')) - .append($rightsLevel) - .appendTo($statistics); - renderRightsLevel(); - - // Links - if (!isMultiple) { - $('
') - .css({marginTop: '16px', marginBottom: '16px', pointer: 'cursor'}) - .append('') - .append( - Ox.Theme.formatColor(null, 'gradient') - .html('View Document') - .css({poiner: 'cursor'}) - .on({ - click: function() { - pandora.UI.set({documentView: 'view'}) - } - }) - ) - .appendTo($statistics); - } function editMetadata(key, value) { if (value != data[key]) {