Skip to content

Commit 465f42e

Browse files
committed
fix: requested changes
1 parent 556fcf7 commit 465f42e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

options/locale/locale_en-US.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2769,8 +2769,8 @@ branch.new_branch_from = Create new branch from "%s"
27692769
branch.renamed = Branch %s was renamed to %s.
27702770
branch.rename_default_or_protected_branch_error = Only admins can rename default or protected branches.
27712771
branch.rename_protected_branch_failed = This branch is protected by glob-based protection rules.
2772-
branch.commits_ahead_1 = %d commit ahead of %s
2773-
branch.commits_ahead_n = %d commits ahead of %s
2772+
branch.commits_ahead_1 = %d commit ahead
2773+
branch.commits_ahead_n = %d commits ahead
27742774
branch.commits_behind_1 = %d commit behind %s
27752775
branch.commits_behind_n = %d commits behind %s
27762776

templates/repo/branch/list.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@
108108
</td>
109109
<td class="two wide ui">
110110
{{if and (not .DBBranch.IsDeleted) $.DefaultBranchBranch}}
111-
<div class="commit-divergence">
111+
<div class="commit-divergence" data-tooltip-content="{{ctx.Locale.TrN .CommitsBehind "repo.branch.commits_behind_1" "repo.branch.commits_behind_n" .CommitsBehind $.DefaultBranchBranch.DBBranch.Name}}, {{ctx.Locale.TrN .CommitsAhead "repo.branch.commits_ahead_1" "repo.branch.commits_ahead_n" .CommitsAhead}}">
112112
<div class="bar-group">
113-
<div class="count count-behind" data-tooltip-content="{{if eq .CommitsBehind 1}}{{ctx.Locale.Tr "repo.branch.commits_behind_1" .CommitsBehind $.DefaultBranchBranch.DBBranch.Name}}{{else}}{{ctx.Locale.Tr "repo.branch.commits_behind_n" .CommitsBehind $.DefaultBranchBranch.DBBranch.Name}}{{end}}">{{.CommitsBehind}}</div>
113+
<div class="count count-behind">{{.CommitsBehind}}</div>
114114
{{/* old code bears 0/0.0 = NaN output, so it might output invalid "width: NaNpx", it just works and doesn't caues any problem. */}}
115115
<div class="bar bar-behind" style="width: {{Eval 100 "*" .CommitsBehind "/" "(" .CommitsBehind "+" .CommitsAhead "+" 0.0 ")"}}%"></div>
116116
</div>
117117
<div class="bar-group">
118-
<div class="count count-ahead" data-tooltip-content="{{if eq .CommitsAhead 1}}{{ctx.Locale.Tr "repo.branch.commits_ahead_1" .CommitsAhead $.DefaultBranchBranch.DBBranch.Name}}{{else}}{{ctx.Locale.Tr "repo.branch.commits_ahead_n" .CommitsAhead $.DefaultBranchBranch.DBBranch.Name}}{{end}}">{{.CommitsAhead}}</div>
118+
<div class="count count-ahead">{{.CommitsAhead}}</div>
119119
<div class="bar bar-ahead" style="width: {{Eval 100 "*" .CommitsAhead "/" "(" .CommitsBehind "+" .CommitsAhead "+" 0.0 ")"}}%"></div>
120120
</div>
121121
</div>

0 commit comments

Comments
 (0)