Commit 882c7b50 authored by Sytse Sijbrandij's avatar Sytse Sijbrandij

Allow for the readme not to exist.

parent 9f36888b
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
- if can?(current_user, :admin_project, @project) - if can?(current_user, :admin_project, @project)
– –
%strong= link_to 'Edit', edit_project_path %strong= link_to 'Edit', edit_project_path
- else - elsif @repository.readme
- readme = @repository.readme - readme = @repository.readme
= link_to project_blob_path(@project, tree_join(@repository.root_ref, readme.name)), class: 'btn btn-block' do = link_to project_blob_path(@project, tree_join(@repository.root_ref, readme.name)), class: 'btn btn-block' do
= readme.name = readme.name
......
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