Commit 6848b0a6 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Show edit readme from project home page

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 11e43cdd
...@@ -43,10 +43,11 @@ ...@@ -43,10 +43,11 @@
- if readme = @repository.readme - if readme = @repository.readme
%article.readme-holder#README %article.readme-holder#README
.clearfix .clearfix
%small.pull-right .pull-right
= link_to namespace_project_blob_path(@project.namespace, @project, tree_join(@repository.root_ref, readme.name)), class: 'light' do &nbsp;
%i.fa.fa-file - if can?(current_user, :push_code, @project)
= readme.name = 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 .wiki
= render_readme(readme) = render_readme(readme)
- else - else
......
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