summaryrefslogtreecommitdiffstats
path: root/routers/repo/projects.go
diff options
context:
space:
mode:
authorMohammad Hadi Hosseinpour <wp.parsi@gmail.com>2020-11-10 07:16:19 +0330
committerGitHub <noreply@github.com>2020-11-09 22:46:19 -0500
commitbeab1dd337250cdef4e4a7588a19e7d711eb870e (patch)
tree54c71b92a9bb2c3dfc8928fbed624d2eeab3888a /routers/repo/projects.go
parent182b5a08ed211331d86b74ff78a7ab2962b9655b (diff)
downloadgitea-beab1dd337250cdef4e4a7588a19e7d711eb870e.tar.gz
gitea-beab1dd337250cdef4e4a7588a19e7d711eb870e.zip
Added title and action buttons to Project view page (#13437)
* Added title and action buttons to Project view page * Changed octicon for project close action * Fix indentation in templates/repo/projects/view.tmpl Co-authored-by: zeripath <art27@cantab.net> * Fix indentation templates/repo/projects/view.tmpl (2nd) Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'routers/repo/projects.go')
-rw-r--r--routers/repo/projects.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/repo/projects.go b/routers/repo/projects.go
index 948f88375e..07327df9eb 100644
--- a/routers/repo/projects.go
+++ b/routers/repo/projects.go
@@ -291,6 +291,8 @@ func ViewProject(ctx *context.Context) {
return
}
+ project.RenderedContent = string(markdown.Render([]byte(project.Description), ctx.Repo.RepoLink, ctx.Repo.Repository.ComposeMetas()))
+
ctx.Data["CanWriteProjects"] = ctx.Repo.Permission.CanWrite(models.UnitTypeProjects)
ctx.Data["Project"] = project
ctx.Data["Boards"] = allBoards