From 4027c5dd7c11c1256094e202be591ec1b86a011e Mon Sep 17 00:00:00 2001 From: Lanre Adelowo Date: Mon, 17 Aug 2020 04:07:38 +0100 Subject: Kanban board (#8346) Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: jaqra <48099350+jaqra@users.noreply.github.com> Co-authored-by: Kerry Co-authored-by: Jaqra Co-authored-by: Kyle Evans Co-authored-by: Tsakiridis Ilias Co-authored-by: Ilias Tsakiridis Co-authored-by: Lunny Xiao Co-authored-by: silverwind Co-authored-by: zeripath Co-authored-by: techknowlogick --- templates/repo/header.tmpl | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'templates/repo/header.tmpl') diff --git a/templates/repo/header.tmpl b/templates/repo/header.tmpl index 494d54b428..1cfdb7287b 100644 --- a/templates/repo/header.tmpl +++ b/templates/repo/header.tmpl @@ -99,6 +99,15 @@ {{end}} + {{ if and (not .UnitProjectsGlobalDisabled) (.Permission.CanRead $.UnitTypeProjects)}} + + {{svg "octicon-project" 16}} {{.i18n.Tr "repo.project_board"}} + + {{.Repository.NumOpenProjects}} + + + {{ end }} + {{if and (.Permission.CanRead $.UnitTypeReleases) (not .IsEmptyRepo) }} {{svg "octicon-tag" 16}} {{.i18n.Tr "repo.releases"}} {{.NumReleases}} -- cgit v1.2.3