]> source.dussan.org Git - gitea.git/commitdiff
Fix can’t move anymore items in repo project boards (#24892)
authoryp05327 <576951401@qq.com>
Wed, 24 May 2023 06:05:50 +0000 (15:05 +0900)
committerGitHub <noreply@github.com>
Wed, 24 May 2023 06:05:50 +0000 (14:05 +0800)
Fix #24879
Related to #24589

In #24589, I changed the css, but didn't reflect the changes in
repo-level projects template.

templates/repo/projects/view.tmpl

index 73548701d466ab90be400ff480b162ddeed8eda5..f297470d25fa2f508ab4fcf48ed244e190ffc799 100644 (file)
@@ -77,7 +77,7 @@
        </div>
        <div class="ui container fluid padded" id="project-board">
 
-               <div class="board">
+               <div class="board {{if .CanWriteProjects}}sortable{{end}}">
                        {{range $board := .Boards}}
 
                        <div class="ui segment board-column" style="background: {{.Color}} !important;" data-id="{{.ID}}" data-sorting="{{.Sorting}}" data-url="{{$.RepoLink}}/projects/{{$.Project.ID}}/{{.ID}}">