diff options
author | Sytse Sijbrandij <sytses@gmail.com> | 2014-06-23 09:50:29 +0200 |
---|---|---|
committer | Sytse Sijbrandij <sytses@gmail.com> | 2014-06-23 09:50:29 +0200 |
commit | 882c7b50b81644be8e8e4be5bcf4b5432d9abb14 (patch) | |
tree | 6f91f55f6654a4a9cec64158fc26f20dceff42c8 /app/views | |
parent | 9f36888b9945970e8aa14282f0ea70286350679c (diff) | |
download | gitlab-ce-882c7b50b81644be8e8e4be5bcf4b5432d9abb14.tar.gz |
Allow for the readme not to exist.
Diffstat (limited to 'app/views')
-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 2384f3eaa76..0f733dadb2e 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 - - else + - elsif @repository.readme - readme = @repository.readme = link_to project_blob_path(@project, tree_join(@repository.root_ref, readme.name)), class: 'btn btn-block' do = readme.name |