Commit 9f36888b authored by Sytse Sijbrandij's avatar Sytse Sijbrandij

Link to readme from description if you don't have edit rights on the repository.

parent 73c1030d
...@@ -21,6 +21,10 @@ ...@@ -21,6 +21,10 @@
- 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
- readme = @repository.readme
= link_to project_blob_path(@project, tree_join(@repository.root_ref, readme.name)), class: 'btn btn-block' do
= readme.name
- unless empty_repo - unless empty_repo
.col-md-5 .col-md-5
......
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