diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-24 16:15:10 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-24 16:15:10 +0300 |
commit | 14bc7e0573267337ae566b42be0275275af46dc6 (patch) | |
tree | 6ae3059787717b431df93e1e75f9176eb586e994 | |
parent | 39c2099106b462ed20668b759181fc7d0b0a356c (diff) | |
download | gitlab-ce-14bc7e0573267337ae566b42be0275275af46dc6.tar.gz |
Show README link only if repository exists and not empty
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r-- | app/views/projects/_home_panel.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/_home_panel.html.haml b/app/views/projects/_home_panel.html.haml index 273a8493f44..52a6d201099 100644 --- a/app/views/projects/_home_panel.html.haml +++ b/app/views/projects/_home_panel.html.haml @@ -21,7 +21,7 @@ - if can?(current_user, :admin_project, @project) – %strong= link_to 'Edit', edit_project_path - - elsif @repository.readme + - elsif !@project.empty_repo? && @repository.readme - readme = @repository.readme = link_to project_blob_path(@project, tree_join(@repository.root_ref, readme.name)) do = readme.name |