| @@ -11,9 +11,13 @@ const ( | |||||
| ) | ) | ||||
| func CloudBrainIndex(ctx *context.Context) { | func CloudBrainIndex(ctx *context.Context) { | ||||
| ctx.Data["PageIsViewCloudBrain"] = true | |||||
| ctx.HTML(200, tplCloudBrainIndex) | ctx.HTML(200, tplCloudBrainIndex) | ||||
| } | } | ||||
| func CloudBrainNew(ctx *context.Context) { | func CloudBrainNew(ctx *context.Context) { | ||||
| ctx.Data["PageIsViewCloudBrain"] = true | |||||
| ctx.HTML(200, tplCloudBrainNew) | ctx.HTML(200, tplCloudBrainNew) | ||||
| } | } | ||||
| @@ -1,4 +1,5 @@ | |||||
| {{template "base/head" .}} | {{template "base/head" .}} | ||||
| <div class="repository release dataset-list view"> | <div class="repository release dataset-list view"> | ||||
| {{template "repo/header" .}} | {{template "repo/header" .}} | ||||
| </div> | |||||
| </div> | |||||
| {{template "base/footer" .}} | |||||
| @@ -1,4 +1,5 @@ | |||||
| {{template "base/head" .}} | {{template "base/head" .}} | ||||
| <div class="repository release dataset-list view"> | <div class="repository release dataset-list view"> | ||||
| {{template "repo/header" .}} | {{template "repo/header" .}} | ||||
| </div> | |||||
| </div> | |||||
| {{template "base/footer" .}} | |||||
| @@ -139,6 +139,12 @@ | |||||
| </a> | </a> | ||||
| {{end}} | {{end}} | ||||
| {{if .Permission.CanRead $.UnitTypeCode}} | |||||
| <a class="{{if .PageIsViewCloudBrain}}active{{end}} item" href="{{.RepoLink}}/cloudbrain"> | |||||
| {{svg "octicon-circuit-board" 16}} {{.i18n.Tr "repo.cloudbrain"}} | |||||
| </a> | |||||
| {{end}} | |||||
| {{template "custom/extra_tabs" .}} | {{template "custom/extra_tabs" .}} | ||||
| {{if .Permission.IsAdmin}} | {{if .Permission.IsAdmin}} | ||||