Fix docker containers relative links
This commit is contained in:
parent
259ce65055
commit
7072911994
@ -93,7 +93,7 @@ func serveDockerPage(m manager.Manager, w http.ResponseWriter, u *url.URL) error
|
|||||||
ParentContainers: []link{
|
ParentContainers: []link{
|
||||||
{
|
{
|
||||||
Text: dockerContainersText,
|
Text: dockerContainersText,
|
||||||
Link: DockerPage,
|
Link: path.Join(rootDir, DockerPage),
|
||||||
}},
|
}},
|
||||||
Subcontainers: subcontainers,
|
Subcontainers: subcontainers,
|
||||||
Root: rootDir,
|
Root: rootDir,
|
||||||
@ -115,12 +115,12 @@ func serveDockerPage(m manager.Manager, w http.ResponseWriter, u *url.URL) error
|
|||||||
// Make a list of the parent containers and their links
|
// Make a list of the parent containers and their links
|
||||||
var parentContainers []link
|
var parentContainers []link
|
||||||
parentContainers = append(parentContainers, link{
|
parentContainers = append(parentContainers, link{
|
||||||
Text: "Docker containers",
|
Text: "Docker Containers",
|
||||||
Link: DockerPage,
|
Link: path.Join(rootDir, DockerPage),
|
||||||
})
|
})
|
||||||
parentContainers = append(parentContainers, link{
|
parentContainers = append(parentContainers, link{
|
||||||
Text: displayName,
|
Text: displayName,
|
||||||
Link: path.Join(DockerPage, docker.ContainerNameToDockerId(cont.Name)),
|
Link: path.Join(rootDir, DockerPage, docker.ContainerNameToDockerId(cont.Name)),
|
||||||
})
|
})
|
||||||
|
|
||||||
// Get the MachineInfo
|
// Get the MachineInfo
|
||||||
|
Loading…
Reference in New Issue
Block a user