move around
This commit is contained in:
parent
0da98d179f
commit
09706ab023
1 changed files with 28 additions and 27 deletions
|
|
@ -486,8 +486,35 @@ pandora.ui.documentInfoView = function(data, isMixed) {
|
|||
.appendTo($statistics);
|
||||
});
|
||||
|
||||
// Rights Level ------------------------------------------------------------
|
||||
|
||||
var $rightsLevel = $('<div>');
|
||||
$('<div>')
|
||||
.css({marginBottom: '4px'})
|
||||
.append(formatKey('Rights Level', 'statistics'))
|
||||
.append($rightsLevel)
|
||||
.appendTo($statistics);
|
||||
renderRightsLevel();
|
||||
|
||||
// Links
|
||||
if (!isMultiple) {
|
||||
$('<div>')
|
||||
.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) && $('<div>')
|
||||
|
|
@ -553,33 +580,7 @@ pandora.ui.documentInfoView = function(data, isMixed) {
|
|||
)
|
||||
.appendTo($statistics);
|
||||
}
|
||||
// Rights Level ------------------------------------------------------------
|
||||
|
||||
var $rightsLevel = $('<div>');
|
||||
$('<div>')
|
||||
.css({marginBottom: '4px'})
|
||||
.append(formatKey('Rights Level', 'statistics'))
|
||||
.append($rightsLevel)
|
||||
.appendTo($statistics);
|
||||
renderRightsLevel();
|
||||
|
||||
// Links
|
||||
if (!isMultiple) {
|
||||
$('<div>')
|
||||
.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]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue