update version text in software panel of site dialog, add a capability
This commit is contained in:
parent
c531fb68c4
commit
ad01da8f36
5 changed files with 21 additions and 4 deletions
|
@ -47,6 +47,7 @@
|
||||||
"canSeeFiles": {"staff": true, "admin": true},
|
"canSeeFiles": {"staff": true, "admin": true},
|
||||||
"canSeeItem": {"guest": 3, "member": 3, "friend": 4, "staff": 4, "admin": 4},
|
"canSeeItem": {"guest": 3, "member": 3, "friend": 4, "staff": 4, "admin": 4},
|
||||||
"canSeeSize": {"friend": true, "staff": true, "admin": true},
|
"canSeeSize": {"friend": true, "staff": true, "admin": true},
|
||||||
|
"canSeeSoftwareVersion": {"staff": true, "admin": true},
|
||||||
"canSendMail": {"staff": true, "admin": true},
|
"canSendMail": {"staff": true, "admin": true},
|
||||||
"canUploadVideo": {"guest": false, "member": false, "staff": true, "admin": true}
|
"canUploadVideo": {"guest": false, "member": false, "staff": true, "admin": true}
|
||||||
},
|
},
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
"canSeeFiles": {"staff": true, "admin": true},
|
"canSeeFiles": {"staff": true, "admin": true},
|
||||||
"canSeeItem": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
|
"canSeeItem": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
|
||||||
"canSeeSize": {"staff": true, "admin": true},
|
"canSeeSize": {"staff": true, "admin": true},
|
||||||
|
"canSeeSoftwareVersion": {"staff": true, "admin": true},
|
||||||
"canSendMail": {"staff": true, "admin": true},
|
"canSendMail": {"staff": true, "admin": true},
|
||||||
"canUploadVideo": {"guest": false, "member": true, "staff": true, "admin": true}
|
"canUploadVideo": {"guest": false, "member": true, "staff": true, "admin": true}
|
||||||
},
|
},
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
"canSeeFiles": {"staff": true, "admin": true},
|
"canSeeFiles": {"staff": true, "admin": true},
|
||||||
"canSeeItem": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
|
"canSeeItem": {"guest": 1, "member": 1, "staff": 4, "admin": 4},
|
||||||
"canSeeSize": {"staff": true, "admin": true},
|
"canSeeSize": {"staff": true, "admin": true},
|
||||||
|
"canSeeSoftwareVersion": {"staff": true, "admin": true},
|
||||||
"canSendMail": {"staff": true, "admin": true},
|
"canSendMail": {"staff": true, "admin": true},
|
||||||
"canUploadVideo": {"guest": false, "member": true, "staff": true, "admin": true}
|
"canUploadVideo": {"guest": false, "member": true, "staff": true, "admin": true}
|
||||||
},
|
},
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
|
|
||||||
pandora.ui.siteDialog = function(section) {
|
pandora.ui.siteDialog = function(section) {
|
||||||
|
|
||||||
var dialogHeight = Math.round((window.innerHeight - 48) * 0.75),
|
var canSeeVersion = pandora.site.capabilities.canSeeSoftwareVersion[pandora.user.level],
|
||||||
|
dialogHeight = Math.round((window.innerHeight - 48) * 0.75),
|
||||||
dialogWidth = Math.round(window.innerWidth * 0.75),
|
dialogWidth = Math.round(window.innerWidth * 0.75),
|
||||||
isEditable = pandora.site.capabilities.canEditSitePages[pandora.user.level],
|
isEditable = pandora.site.capabilities.canEditSitePages[pandora.user.level],
|
||||||
tabs = Ox.clone(pandora.site.sitePages, true).concat([{id: 'software', title: 'Software'}]);
|
tabs = Ox.clone(pandora.site.sitePages, true).concat([{id: 'software', title: 'Software'}]);
|
||||||
|
@ -28,7 +29,13 @@ pandora.ui.siteDialog = function(section) {
|
||||||
+ '<p>To learn more about <b>pan.do/ra</b> and <b>OxJS</b>, '
|
+ '<p>To learn more about <b>pan.do/ra</b> and <b>OxJS</b>, '
|
||||||
+ 'please visit <a href="https://pan.do/ra">pan.do/ra</a> '
|
+ 'please visit <a href="https://pan.do/ra">pan.do/ra</a> '
|
||||||
+ 'and <a href="https://oxjs.org">oxjs.org</a>.</p>'
|
+ 'and <a href="https://oxjs.org">oxjs.org</a>.</p>'
|
||||||
+ '<b>' + pandora.site.site.name + '</b> is running pan.do/ra r'+ pandora.site.site.version
|
+ (
|
||||||
|
canSeeVersion
|
||||||
|
? '<sub><b>' + pandora.site.site.name
|
||||||
|
+ '</b> is running <b>pan.do/ra</b> revision '
|
||||||
|
+ pandora.site.site.version + '.</sub>'
|
||||||
|
: ''
|
||||||
|
)
|
||||||
)
|
)
|
||||||
.appendTo($content);
|
.appendTo($content);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
|
|
||||||
pandora.ui.siteDialog = function(section) {
|
pandora.ui.siteDialog = function(section) {
|
||||||
|
|
||||||
var dialogHeight = Math.round((window.innerHeight - 48) * 0.75),
|
var canSeeVersion = pandora.site.capabilities.canSeeSoftwareVersion[pandora.user.level],
|
||||||
|
dialogHeight = Math.round((window.innerHeight - 48) * 0.75),
|
||||||
dialogWidth = Math.round(window.innerWidth * 0.75),
|
dialogWidth = Math.round(window.innerWidth * 0.75),
|
||||||
isEditable = pandora.site.capabilities.canEditSitePages[pandora.user.level],
|
isEditable = pandora.site.capabilities.canEditSitePages[pandora.user.level],
|
||||||
tabs = Ox.clone(pandora.site.sitePages, true).concat([{id: 'software', title: 'Software'}]);
|
tabs = Ox.clone(pandora.site.sitePages, true).concat([{id: 'software', title: 'Software'}]);
|
||||||
|
@ -28,7 +29,13 @@ pandora.ui.siteDialog = function(section) {
|
||||||
+ '<p>To learn more about <b>pan.do/ra</b> and <b>OxJS</b>, '
|
+ '<p>To learn more about <b>pan.do/ra</b> and <b>OxJS</b>, '
|
||||||
+ 'please visit <a href="https://pan.do/ra">pan.do/ra</a> '
|
+ 'please visit <a href="https://pan.do/ra">pan.do/ra</a> '
|
||||||
+ 'and <a href="https://oxjs.org">oxjs.org</a>.</p>'
|
+ 'and <a href="https://oxjs.org">oxjs.org</a>.</p>'
|
||||||
+ '<b>' + pandora.site.site.name + '</b> is running pan.do/ra r'+ pandora.site.site.version
|
+ (
|
||||||
|
canSeeVersion
|
||||||
|
? '<sub><b>' + pandora.site.site.name
|
||||||
|
+ '</b> is running <b>pan.do/ra</b> revision '
|
||||||
|
+ pandora.site.site.version + '.</sub>'
|
||||||
|
: ''
|
||||||
|
)
|
||||||
)
|
)
|
||||||
.appendTo($content);
|
.appendTo($content);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue