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
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
..
admin cleanup repo details icons/labels (#27644) 1 year ago
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2 years ago
base Rename the default themes to gitea-light, gitea-dark, gitea-auto (#27419) 1 year ago
code Fix more "locale" usages (#27259) 1 year ago
custom Add footer extra links template (#9576) 5 years ago
devtest Improve dropdown button alignment and fix hover bug (#27632) 1 year ago
explore Fix incorrect "tab" parameter for repo search sub-template (#27755) 1 year ago
mail Update team invitation email link (#26550) 1 year ago
org Add link to members and repositories at teams page (#27744) 1 year ago
package Package repository/documentation link unification (#27804) 1 year ago
projects More `db.DefaultContext` refactor (#27265) 1 year ago
repo Fix rendering assignee changed comments without assignee (#27927) 1 year ago
shared Add `Hide/Show all checks` button to commit status check (#26284) 1 year ago
status Clean up template locale usage (#27856) 1 year ago
swagger Fix package webhook (#27839) 1 year ago
user Refactor Find Sources and fix bug when view a user who belongs to an unactive auth source (#27798) 1 year ago
webhook Extract common code to new template (#26933) 1 year ago
home.tmpl Fix more "locale" usages (#27259) 1 year ago
install.tmpl Fix more "locale" usages (#27259) 1 year ago
post-install.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago