show empty state for commits tab when no commits present

This commit is contained in:
Mike Greiling 2016-12-28 09:09:15 -06:00
parent a5fb9581cd
commit ada5921d94
1 changed files with 8 additions and 2 deletions

View File

@ -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