Commit a31fe1a6 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #3407 from NARKOZ/patch-1

use convenient method to check for empty project repo
parents e3f11642 7ed0dc01
......@@ -57,11 +57,11 @@ class ProjectsController < ProjectResourceController
respond_to do |format|
format.html do
if @project.repository && !@project.repository.empty?
if @project.empty_repo?
render "projects/empty"
else
@last_push = current_user.recent_push(@project.id)
render :show
else
render "projects/empty"
end
end
format.js
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment