diff options
author | Sytse Sijbrandij <sytses@gmail.com> | 2014-06-23 09:16:38 +0200 |
---|---|---|
committer | Sytse Sijbrandij <sytses@gmail.com> | 2014-06-23 09:16:38 +0200 |
commit | 9f36888b9945970e8aa14282f0ea70286350679c (patch) | |
tree | 83e9625dbd4ad6760fe0aeb1ab2348e1e8460872 | |
parent | 73c1030da1318284495288461210e8d145aa7181 (diff) | |
download | gitlab-ce-9f36888b9945970e8aa14282f0ea70286350679c.tar.gz |
Link to readme from description if you don't have edit rights on the repository.
-rw-r--r-- | app/views/projects/_home_panel.html.haml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/projects/_home_panel.html.haml b/app/views/projects/_home_panel.html.haml index 81bb0e20a35..2384f3eaa76 100644 --- a/app/views/projects/_home_panel.html.haml +++ b/app/views/projects/_home_panel.html.haml @@ -21,6 +21,10 @@ - if can?(current_user, :admin_project, @project) – %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 .col-md-5 |