Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display assigned user in Kanban board #18326

Closed
bcallaghan-et opened this issue Jan 18, 2022 · 4 comments · Fixed by #15232
Closed

Display assigned user in Kanban board #18326

bcallaghan-et opened this issue Jan 18, 2022 · 4 comments · Fixed by #15232
Labels
type/enhancement An improvement of existing functionality

Comments

@bcallaghan-et
Copy link

Feature Description

The Kanban boards within Gitea should display the assigned user on each card. If an issue is unassigned, then this spot should be left blank or perhaps have some indicator that the issue is unassigned. Currently, the card displays the author of the issue, but not the developer working on the issue. My team uses Kanban boards as a task tracker, so it is much more useful to know who is working on the task, not who asked for the task to be done. Trello supports this feature by displaying the avatar (or initials) of the assigned user in the bottom-right corner of the card.

Screenshots

No response

@zeripath
Copy link
Contributor

Hmm... I think it would be useful to see a mock-up of this.


diff --git a/templates/repo/projects/view.tmpl b/templates/repo/projects/view.tmpl
index 1db52a3d7..c53b03662 100644
--- a/templates/repo/projects/view.tmpl
+++ b/templates/repo/projects/view.tmpl
@@ -228,6 +228,18 @@
 								</a>
 							</div>
 							{{- end }}
+							{{- if .Assignees}}
+							<div class="meta my-2">
+								<div class="text light grey">{{$.i18n.Tr "repo.issues.new.assignees"}}
+								<ul>
+									{{- range .Assignees}}
+										<li><a class="ui assignee tooltip tdn" href="{{.HomeLink}}" data-content="{{.GetDisplayName}}" data-position="left center">
+											{{avatar .}} {{.GetDisplayName}}
+										</a></li>
+									{{- end}}
+								</ul></div>
+							</div>
+							{{- end}}
 						</div>
 						{{if .Labels}}
 							<div class="extra content labels-list p-0 pt-2">

Screenshot from 2022-01-18 23-35-37

which doesn't quite work I think.

@zeripath zeripath added the type/enhancement An improvement of existing functionality label Jan 18, 2022
@wxiaoguang
Copy link
Contributor

IIRC there was an old PR for this.

@wxiaoguang
Copy link
Contributor

wxiaoguang commented Jan 19, 2022

@wxiaoguang wxiaoguang linked a pull request Jan 19, 2022 that will close this issue
@bcallaghan-et
Copy link
Author

That PR looks exactly like what I want. I'll close this issue as a duplicate of #15026

@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants