aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/issue
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2023-11-02 11:42:02 +0100
committerGitHub <noreply@github.com>2023-11-02 11:42:02 +0100
commit4776fde9e1caa7cee5671715144a668e19a0323c (patch)
treeef8bf9edcb596acf81ee9a3a23233200aad743fd /templates/repo/issue
parentdc52f26d46f12b7e3c647bec3514e6c66684a3af (diff)
downloadgitea-4776fde9e1caa7cee5671715144a668e19a0323c.tar.gz
gitea-4776fde9e1caa7cee5671715144a668e19a0323c.zip
Display issue task list on project cards (#27865)
Display the issue task list on project cards. ![grafik](https://github.com/go-gitea/gitea/assets/1666336/e6cb3196-8980-403c-9795-3a7b03fbfb3c) Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'templates/repo/issue')
-rw-r--r--templates/repo/issue/card.tmpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/repo/issue/card.tmpl b/templates/repo/issue/card.tmpl
index 05b7dbaabc..3cc853b351 100644
--- a/templates/repo/issue/card.tmpl
+++ b/templates/repo/issue/card.tmpl
@@ -49,6 +49,13 @@
</div>
{{end}}
{{end}}
+ {{$tasks := .GetTasks}}
+ {{if gt $tasks 0}}
+ <div class="meta gt-my-2">
+ {{svg "octicon-checklist" 16 "gt-mr-2 gt-vm"}}
+ <span class="gt-vm">{{.GetTasksDone}} / {{$tasks}}</span>
+ </div>
+ {{end}}
</div>
{{if or .Labels .Assignees}}