summaryrefslogtreecommitdiff
path: root/app/views/projects/_home_panel.html.haml
diff options
context:
space:
mode:
authorSytse Sijbrandij <sytses@gmail.com>2014-06-23 09:50:29 +0200
committerSytse Sijbrandij <sytses@gmail.com>2014-06-23 09:50:29 +0200
commit882c7b50b81644be8e8e4be5bcf4b5432d9abb14 (patch)
tree6f91f55f6654a4a9cec64158fc26f20dceff42c8 /app/views/projects/_home_panel.html.haml
parent9f36888b9945970e8aa14282f0ea70286350679c (diff)
downloadgitlab-ce-882c7b50b81644be8e8e4be5bcf4b5432d9abb14.tar.gz
Allow for the readme not to exist.
Diffstat (limited to 'app/views/projects/_home_panel.html.haml')
-rw-r--r--app/views/projects/_home_panel.html.haml2
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)
&ndash;
%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