Dont show compare link if only one commit in push
This commit is contained in:
parent
e0d0c1b225
commit
afecb250a4
1 changed files with 6 additions and 5 deletions
|
@ -18,6 +18,7 @@
|
||||||
- few_commits.each do |commit|
|
- few_commits.each do |commit|
|
||||||
= render "events/commit", commit: commit, project: project
|
= render "events/commit", commit: commit, project: project
|
||||||
|
|
||||||
|
- if event.commits_count > 1
|
||||||
%li.commits-stat
|
%li.commits-stat
|
||||||
- if event.commits_count > 2
|
- if event.commits_count > 2
|
||||||
%span ... and #{event.commits_count - 2} more commits.
|
%span ... and #{event.commits_count - 2} more commits.
|
||||||
|
|
Loading…
Add table
Reference in a new issue