diff options
author | Lin Jen-Shin (godfat) <godfat@godfat.org> | 2018-01-05 16:52:06 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-01-05 16:52:06 +0000 |
commit | 33c5630b02a783a749cc0bf63474f643652cdeeb (patch) | |
tree | 0d30ab08be0f71e4317822f7a5a2dd13a5ad4fd7 /app/views/projects/branches/_branch.html.haml | |
parent | b72af2b9c78527ea988bc6a69c62ec95645a6c48 (diff) | |
download | gitlab-ce-33c5630b02a783a749cc0bf63474f643652cdeeb.tar.gz |
Use --left-right and --max-count for counting diverging commits
Diffstat (limited to 'app/views/projects/branches/_branch.html.haml')
-rw-r--r-- | app/views/projects/branches/_branch.html.haml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/projects/branches/_branch.html.haml b/app/views/projects/branches/_branch.html.haml index acf67b83890..1da0e865a41 100644 --- a/app/views/projects/branches/_branch.html.haml +++ b/app/views/projects/branches/_branch.html.haml @@ -66,16 +66,16 @@ = icon("trash-o") - if branch.name != @repository.root_ref - .divergence-graph{ title: s_('%{number_commits_behind} commits behind %{default_branch}, %{number_commits_ahead} commits ahead') % { number_commits_behind: number_commits_behind, + .divergence-graph{ title: s_('%{number_commits_behind} commits behind %{default_branch}, %{number_commits_ahead} commits ahead') % { number_commits_behind: diverging_count_label(number_commits_behind), default_branch: @repository.root_ref, - number_commits_ahead: number_commits_ahead } } + number_commits_ahead: diverging_count_label(number_commits_ahead) } } .graph-side .bar.bar-behind{ style: "width: #{number_commits_behind * bar_graph_width_factor}%" } - %span.count.count-behind= number_commits_behind + %span.count.count-behind= diverging_count_label(number_commits_behind) .graph-separator .graph-side .bar.bar-ahead{ style: "width: #{number_commits_ahead * bar_graph_width_factor}%" } - %span.count.count-ahead= number_commits_ahead + %span.count.count-ahead= diverging_count_label(number_commits_ahead) - if commit |