diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-30 09:32:04 -0700 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-30 09:32:04 -0700 |
commit | 9b181dc649058c55720be0a9d023e07a71c6c38e (patch) | |
tree | 30108cdb4888e005dcc9d4e3780d830ab92acc9a | |
parent | d9c02f30e56592986b98bcbf8e7c1abd712b696f (diff) | |
parent | 45ecbb0358e9f397372b7360fe822139bae9ad8f (diff) | |
download | gitlab-ce-9b181dc649058c55720be0a9d023e07a71c6c38e.tar.gz |
Merge pull request #4442 from 1ed/projects-helper-fix
fixed nav bar for empty repos (fixes #4375)
-rw-r--r-- | app/helpers/projects_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 3abb1fe486d..22aec62e2bf 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -62,7 +62,7 @@ module ProjectsHelper def get_project_nav_tabs(project, current_user) nav_tabs = [:home] - if project.repo_exists? && can?(current_user, :download_code, project) + if !project.empty_repo? && can?(current_user, :download_code, project) nav_tabs << [:files, :commits, :network, :graphs] end |