Use full width for project boards (#28225) (#28245)

Backport #28225 by @denyskon

Inspired by #28182 

Co-authored-by: Denys Konovalov <kontakt@denyskon.de>
This commit is contained in:
Giteabot 2023-11-28 02:20:53 +08:00 committed by GitHub
parent ea9f5a57e4
commit 6d22ca15ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 61 additions and 55 deletions

View file

@ -3,6 +3,8 @@
{{template "shared/user/org_profile_avatar" .}}
<div class="ui container">
{{template "user/overview/header" .}}
</div>
<div class="ui container fluid padded">
{{template "projects/view" .}}
</div>
</div>

View file

@ -1,5 +1,6 @@
{{$canWriteProject := and .CanWriteProjects (or (not .Repository) (not .Repository.IsArchived))}}
<div class="ui container">
<div class="gt-df gt-sb gt-ac gt-mb-4">
<h2 class="gt-mb-0">{{.Project.Title}}</h2>
{{if $canWriteProject}}
@ -60,6 +61,7 @@
<div class="content">{{$.Project.RenderedContent|Str2html}}</div>
<div class="divider"></div>
</div>
<div id="project-board">
<div class="board {{if .CanWriteProjects}}sortable{{end}}">

View file

@ -6,6 +6,8 @@
{{template "repo/issue/navbar" .}}
<a class="ui small primary button" href="{{.RepoLink}}/issues/new/choose?project={{.Project.ID}}">{{ctx.Locale.Tr "repo.issues.new"}}</a>
</div>
</div>
<div class="ui container fluid padded">
{{template "projects/view" .}}
</div>
</div>