2015-08-20 20:18:49 +08:00
|
|
|
{{template "base/head" .}}
|
2023-02-01 19:56:10 -03:00
|
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository commits">
|
2015-12-07 23:30:52 +01:00
|
|
|
{{template "repo/header" .}}
|
|
|
|
<div class="ui container">
|
2017-10-26 02:49:16 +02:00
|
|
|
{{template "repo/sub_menu" .}}
|
2023-06-15 23:12:08 +08:00
|
|
|
<div class="repo-button-row">
|
2024-11-22 14:12:50 +08:00
|
|
|
<div class="repo-button-row-left">
|
2025-01-10 09:41:52 +08:00
|
|
|
{{- /* for /owner/repo/commits/branch/the-name */ -}}
|
|
|
|
{{- $branchDropdownCurrentRefType := "branch" -}}
|
|
|
|
{{- $branchDropdownCurrentRefShortName := .BranchName -}}
|
|
|
|
{{- if .IsViewTag -}}
|
|
|
|
{{- /* for /owner/repo/commits/tag/the-name */ -}}
|
|
|
|
{{- $branchDropdownCurrentRefType = "tag" -}}
|
|
|
|
{{- $branchDropdownCurrentRefShortName = .TagName -}}
|
|
|
|
{{- else if .IsViewCommit -}}
|
|
|
|
{{- /* for /owner/repo/commits/commit/000000 */ -}}
|
|
|
|
{{- $branchDropdownCurrentRefType = "commit" -}}
|
|
|
|
{{- $branchDropdownCurrentRefShortName = ShortSha .CommitID -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- template "repo/branch_dropdown" dict
|
2024-12-02 09:41:32 +08:00
|
|
|
"Repository" .Repository
|
|
|
|
"ShowTabBranches" true
|
|
|
|
"ShowTabTags" true
|
|
|
|
"CurrentRefType" $branchDropdownCurrentRefType
|
|
|
|
"CurrentRefShortName" $branchDropdownCurrentRefShortName
|
|
|
|
"CurrentTreePath" .TreePath
|
|
|
|
"RefLinkTemplate" "{RepoLink}/commits/{RefType}/{RefShortName}/{TreePath}"
|
|
|
|
"AllowCreateNewRef" .CanCreateBranch
|
2025-01-10 09:41:52 +08:00
|
|
|
-}}
|
2017-12-07 02:26:12 +01:00
|
|
|
<a href="{{.RepoLink}}/graph" class="ui basic small compact button">
|
2023-09-21 23:54:26 +08:00
|
|
|
{{svg "octicon-git-branch"}}
|
2023-09-25 10:56:50 +02:00
|
|
|
{{ctx.Locale.Tr "repo.commit_graph"}}
|
2017-10-26 02:49:16 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "repo/commits_table" .}}
|
2015-12-07 23:30:52 +01:00
|
|
|
</div>
|
2014-03-17 06:58:34 -04:00
|
|
|
</div>
|
2015-08-20 20:18:49 +08:00
|
|
|
{{template "base/footer" .}}
|