diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-07-09 12:02:47 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-07-09 12:08:00 +0200 |
commit | 6848b0a6258681286c3929979fb3e6b5571cce61 (patch) | |
tree | a17b971b5a8fbe7ecf896e8e2ff261091ea598b5 | |
parent | 11e43cddbc22e9402e1f3f0f79172cebd741983f (diff) | |
download | gitlab-ce-6848b0a6258681286c3929979fb3e6b5571cce61.tar.gz |
Show edit readme from project home page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r-- | app/views/projects/show.html.haml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml index 17907a42e3c..889ad52f235 100644 --- a/app/views/projects/show.html.haml +++ b/app/views/projects/show.html.haml @@ -43,10 +43,11 @@ - if readme = @repository.readme %article.readme-holder#README .clearfix - %small.pull-right - = link_to namespace_project_blob_path(@project.namespace, @project, tree_join(@repository.root_ref, readme.name)), class: 'light' do - %i.fa.fa-file - = readme.name + .pull-right + + - if can?(current_user, :push_code, @project) + = link_to namespace_project_edit_blob_path(@project.namespace, @project, tree_join(@repository.root_ref, readme.name)), class: 'light' do + %i.fa.fa-pencil .wiki = render_readme(readme) - else |