diff --git a/routers/repo/cloudbrain.go b/routers/repo/cloudbrain.go index 94f4df2c6..a6aee1407 100644 --- a/routers/repo/cloudbrain.go +++ b/routers/repo/cloudbrain.go @@ -11,9 +11,13 @@ const ( ) func CloudBrainIndex(ctx *context.Context) { + ctx.Data["PageIsViewCloudBrain"] = true + ctx.HTML(200, tplCloudBrainIndex) } func CloudBrainNew(ctx *context.Context) { + ctx.Data["PageIsViewCloudBrain"] = true + ctx.HTML(200, tplCloudBrainNew) } diff --git a/templates/repo/cloudbrain/index.tmpl b/templates/repo/cloudbrain/index.tmpl index 97f9303bc..399d17520 100644 --- a/templates/repo/cloudbrain/index.tmpl +++ b/templates/repo/cloudbrain/index.tmpl @@ -1,4 +1,5 @@ {{template "base/head" .}}
{{template "repo/header" .}} -
\ No newline at end of file + +{{template "base/footer" .}} diff --git a/templates/repo/cloudbrain/new.tmpl b/templates/repo/cloudbrain/new.tmpl index 97f9303bc..399d17520 100644 --- a/templates/repo/cloudbrain/new.tmpl +++ b/templates/repo/cloudbrain/new.tmpl @@ -1,4 +1,5 @@ {{template "base/head" .}}
{{template "repo/header" .}} -
\ No newline at end of file + +{{template "base/footer" .}} diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 8478b1e7f..b0e546272 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -139,6 +139,12 @@ {{end}} + {{if .Permission.CanRead $.UnitTypeCode}} + + {{svg "octicon-circuit-board" 16}} {{.i18n.Tr "repo.cloudbrain"}} + + {{end}} + {{template "custom/extra_tabs" .}} {{if .Permission.IsAdmin}}