Skip to content

Commit 7456573

Browse files
denyskondelvhGiteaBot
authored
fix grab cursor on default column (#26476)
Fix #26448 (comment) I accidentally set grab cursor for project columns instead of issue cards, which actually turned out not to be a problem - with proper check for the default column, which can't be moved. --------- Co-authored-by: delvh <dev.lh@web.de> Co-authored-by: Giteabot <teabot@gitea.io>
1 parent 389fb75 commit 7456573

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/projects/view.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@
167167

168168
<div class="divider"></div>
169169

170-
<div class="ui cards {{if $.CanWriteProjects}}gt-cursor-grab{{end}}" data-url="{{$.Link}}/{{.ID}}" data-project="{{$.Project.ID}}" data-board="{{.ID}}" id="board_{{.ID}}">
170+
<div class="ui cards {{if and $canWriteProject (ne .ID 0)}}{{/* ID 0 is default column which cannot be moved */}}gt-cursor-grab{{end}}" data-url="{{$.Link}}/{{.ID}}" data-project="{{$.Project.ID}}" data-board="{{.ID}}" id="board_{{.ID}}">
171171
{{range (index $.IssuesMap .ID)}}
172-
<div class="issue-card gt-word-break" data-issue="{{.ID}}">
172+
<div class="issue-card gt-word-break {{if $canWriteProject}}gt-cursor-grab{{end}}" data-issue="{{.ID}}">
173173
{{template "repo/issue/card" (dict "Issue" . "Page" $)}}
174174
</div>
175175
{{end}}

0 commit comments

Comments
 (0)