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
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
..
actions Add dedicated class for empty placeholders (#27788) 1 year ago
branch Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
cite Update JS and PY dependencies (#27501) 1 year ago
code Fix more "locale" usages (#27259) 1 year ago
diff Show correct commit sha when viewing single commit diff (#27916) 1 year ago
editor Fix more "locale" usages (#27259) 1 year ago
find Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
graph Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
issue Fix rendering assignee changed comments without assignee (#27927) 1 year ago
migrate Fix more "locale" usages (#27259) 1 year ago
projects Change green buttons to primary color (#27099) 1 year ago
pulls Add `Hide/Show all checks` button to commit status check (#26284) 1 year ago
release Add word break to release title (#27942) 1 year ago
settings Use flex-container for repo and org settings (#27418) 1 year ago
tag Fix more "locale" usages (#27259) 1 year ago
wiki Fix more "locale" usages (#27259) 1 year ago
activity.tmpl Fix more "locale" usages (#27259) 1 year ago
blame.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
branch_dropdown.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
clone_buttons.tmpl Fix more "locale" usages (#27259) 1 year ago
clone_script.tmpl Rework button coloring, add focus and active colors (#24507) 2 years ago
commit_load_branches_and_tags.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
commit_page.tmpl Add `Hide/Show all checks` button to commit status check (#26284) 1 year ago
commit_status.tmpl Restore warning commit status (#27504) 1 year ago
commit_statuses.tmpl Add `Hide/Show all checks` button to commit status check (#26284) 1 year ago
commits.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
commits_list.tmpl Add `Hide/Show all checks` button to commit status check (#26284) 1 year ago
commits_list_small.tmpl Add `Hide/Show all checks` button to commit status check (#26284) 1 year ago
commits_table.tmpl Fix more "locale" usages (#27259) 1 year ago
create.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
create_helper.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
empty.tmpl Fix more "locale" usages (#27259) 1 year ago
file_info.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
forks.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
graph.tmpl Fix more "locale" usages (#27259) 1 year ago
header.tmpl cleanup repo details icons/labels (#27644) 1 year ago
home.tmpl Fix edit topic UI (#27925) 1 year ago
icon.tmpl cleanup repo details icons/labels (#27644) 1 year ago
packages.tmpl Fix inconsistent user profile layout across tabs (#25625) 2 years ago
release_tag_header.tmpl Fix more "locale" usages (#27259) 1 year ago
search.tmpl Fix more "locale" usages (#27259) 1 year ago
search_name.tmpl Clean template/helper.go (#23922) 2 years ago
shabox_badge.tmpl cleanup locale function usage (#27227) 1 year ago
sub_menu.tmpl Enable followCursor for language stats bar (#27713) 1 year ago
unicode_escape_prompt.tmpl cleanup locale function usage (#27227) 1 year ago
upload.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
user_cards.tmpl Always use `ctx.Locale.Tr` inside templates (#27231) 1 year ago
view_file.tmpl Add link for repositories README file (#27684) 1 year ago
view_list.tmpl Add `Hide/Show all checks` button to commit status check (#26284) 1 year ago
watchers.tmpl Fix user-cards format (#24428) 2 years ago