You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/templates/repo/issue
Sebastian Brückner e80f446d3a
Fix rendering assignee changed comments without assignee (#27927)
When an assignee changed event comment is rendered, most of it is
guarded behind the assignee ID not being 0. However, if it is 0, that
results in quite broken rendering for that comment and the next one.
This can happen, for example, when repository data imported from outside
of Gitea is incomplete.

This PR makes sure comments with an assignee ID of 0 are not rendered at
all.

---

Screenshot before:
<img width="272" alt="Bildschirm­foto 2023-11-05 um 20 12 18"
src="https://github.com/go-gitea/gitea/assets/42910/7d629d76-fee4-4fe5-9e3a-bf524050cead">
The comments in this screenshot are:
1. A regular text comment
2. A user being unassigned
3. A user being assigned
4. The title of the PR being changed

Comments 2 and 3 are rendered without any text, which indents the next
comment and does not leave enough vertical space.

Co-authored-by: Giteabot <teabot@gitea.io>
1 year ago
..
fields Fix required checkboxes in issue forms (#27592) 1 year ago
labels Hide archived labels by default from the suggestions when assigning labels for an issue (#27451) 1 year ago
milestone Improve the list header in milestone page (#27302) 1 year ago
view_content Fix rendering assignee changed comments without assignee (#27927) 1 year ago
branch_selector_field.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
card.tmpl Display issue task list on project cards (#27865) 1 year ago
choose.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
comment_tab.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
filter_actions.tmpl Hide archived labels by default from the suggestions when assigning labels for an issue (#27451) 1 year ago
filter_list.tmpl Improve the list header in milestone page (#27302) 1 year ago
filters.tmpl Show total TrackedTime on issue/pull/milestone lists (#26672) 1 year ago
label_precolors.tmpl Refactor some CSS styles and simplify code (#26771) 1 year ago
labels.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
list.tmpl Show total TrackedTime on issue/pull/milestone lists (#26672) 1 year ago
milestone_issues.tmpl Show total TrackedTime on issue/pull/milestone lists (#26672) 1 year ago
milestone_new.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
milestones.tmpl Improve the list header in milestone page (#27302) 1 year ago
navbar.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
new.tmpl Make Issue/PR/projects more compact, misc CSS tweaks (#24459) 2 years ago
new_form.tmpl [FIX] missing ctx in new_form (#27514) 1 year ago
openclose.tmpl Improve the list header in milestone page (#27302) 1 year ago
search.tmpl Improve the list header in milestone page (#27302) 1 year ago
view.tmpl Make Issue/PR/projects more compact, misc CSS tweaks (#24459) 2 years ago
view_content.tmpl Remove "tabindex" from some form buttons (#27892) 1 year ago
view_title.tmpl Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago