diff options
author | Denys Konovalov <kontakt@denyskon.de> | 2023-08-14 03:15:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-14 09:15:16 +0800 |
commit | 7456573541c0c01314690e4a40bc4b5ec6faf79e (patch) | |
tree | faae19c9fffb9787866ce84c14935e3eab9d948f /templates | |
parent | 389fb754a24948cbe90b09104f341f5fc5d7e3d5 (diff) | |
download | gitea-7456573541c0c01314690e4a40bc4b5ec6faf79e.tar.gz gitea-7456573541c0c01314690e4a40bc4b5ec6faf79e.zip |
fix grab cursor on default column (#26476)
Fix https://github.com/go-gitea/gitea/pull/26448#issuecomment-1676194200
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>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/projects/view.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/projects/view.tmpl b/templates/projects/view.tmpl index 97869ca262..700b40c39b 100644 --- a/templates/projects/view.tmpl +++ b/templates/projects/view.tmpl @@ -167,9 +167,9 @@ <div class="divider"></div> - <div class="ui cards {{if $.CanWriteProjects}}gt-cursor-grab{{end}}" data-url="{{$.Link}}/{{.ID}}" data-project="{{$.Project.ID}}" data-board="{{.ID}}" id="board_{{.ID}}"> + <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}}"> {{range (index $.IssuesMap .ID)}} - <div class="issue-card gt-word-break" data-issue="{{.ID}}"> + <div class="issue-card gt-word-break {{if $canWriteProject}}gt-cursor-grab{{end}}" data-issue="{{.ID}}"> {{template "repo/issue/card" (dict "Issue" . "Page" $)}} </div> {{end}} |