Support ReadMe

This commit is contained in:
Andrew Z
2021-11-06 17:06:37 -04:00
parent 11aa1ce7d1
commit ace79a7051
5 changed files with 15 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
var eventURL = '/plugins/dynamix.docker.manager/include/Events.php';
function addDockerContainerContext(container, image, template, started, paused, update, autostart, webui, shell, id, Support, Project, Registry, donateLink) {
function addDockerContainerContext(container, image, template, started, paused, update, autostart, webui, shell, id, Support, Project, Registry, donateLink, ReadMe) {
var opts = [];
if (started && !paused) {
if (webui !== '' && webui != '#') opts.push({text:_('WebUI'), icon:'fa-globe', href:webui, target:'_blank'});
@@ -32,6 +32,9 @@ function addDockerContainerContext(container, image, template, started, paused,
if ( Support || Project ) {
opts.push({divider:true});
}
if (ReadMe) {
opts.push({text:_('Read Me First'), icon:'fa-book', href:ReadMe, target:'_blank'});
}
if (Project) {
opts.push({text:_('Project Page'), icon:'fa-life-ring', href:Project, target:'_blank'});
}