mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-02 13:44:16 +09:00
Opening a single commit of a PR let you look, but not review. The Review button was disabled and there was no way to reach the next or previous commit. This finishes https://github.com/go-gitea/gitea/pull/37475, which only reached the head commit. - Reviews can be submitted from a single commit, a commit range stays disabled - A bar above a single-commit diff shows the commit, its position in the PR and prev/next buttons - The commit dropdown marks the commits on screen - Timeline commits open the PR's commit view, commits force-pushed out of the PR redirect to the repository commit page Assisted-by: Claude Code (Fable 5.1) Co-authored-by: bircni <bircni@icloud.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: silverwind <me@silverwind.io>
17 lines
645 B
Handlebars
17 lines
645 B
Handlebars
{{if .Statuses}}
|
|
{{if and (eq (len .Statuses) 1) .Status.TargetURL}}
|
|
<a class="flex-text-inline silenced {{.AdditionalClasses}}" data-global-init="initCommitStatuses" href="{{.Status.TargetURL}}">
|
|
{{template "repo/icons/commit_status" .Status}}
|
|
</a>
|
|
{{else}}
|
|
<span class="flex-text-inline {{.AdditionalClasses}}" data-global-init="initCommitStatuses" tabindex="0">
|
|
{{template "repo/icons/commit_status" .Status}}
|
|
</span>
|
|
{{end}}
|
|
<div class="tippy-target">
|
|
<div class="commit-status-list flex-divided-list items-px-default">
|
|
{{template "repo/pulls/status_items" (dict "CommitStatuses" .Statuses)}}
|
|
</div>
|
|
</div>
|
|
{{end}}
|