show empty state for commits tab when no commits present
This commit is contained in:
parent
a5fb9581cd
commit
ada5921d94
|
@ -1,2 +1,8 @@
|
|||
%ol#commits-list.list-unstyled
|
||||
= render "projects/commits/commits", project: @merge_request.source_project, ref: @merge_request.source_branch
|
||||
- if @commits.empty?
|
||||
.commits-empty
|
||||
%h4
|
||||
There are no commits yet.
|
||||
= custom_icon ('illustration_no_commits')
|
||||
- else
|
||||
%ol#commits-list.list-unstyled
|
||||
= render "projects/commits/commits", project: @merge_request.source_project, ref: @merge_request.source_branch
|
||||
|
|
Loading…
Reference in New Issue