Commit 097238f0 authored by Douwe Maan's avatar Douwe Maan

Restore edit button in project readme

parent 8b127f45
...@@ -544,5 +544,13 @@ pre.light-well { ...@@ -544,5 +544,13 @@ pre.light-well {
} }
.project-show-readme .readme-holder { .project-show-readme .readme-holder {
margin-left: -$gl-padding;
margin-right: -$gl-padding;
padding: $gl-padding;
border-top: 0; border-top: 0;
.edit-project-readme {
z-index: 100;
position: relative;
}
} }
- if readme = @repository.readme - if readme = @repository.readme
%article.file-holder.readme-holder %article.readme-holder
.file-title .pull-right
= blob_icon readme.mode, readme.name - if can?(current_user, :push_code, @project)
= link_to namespace_project_blob_path(@project.namespace, @project, tree_join(@repository.root_ref, readme.name)) do = link_to icon('pencil'), namespace_project_edit_blob_path(@project.namespace, @project, tree_join(@repository.root_ref, readme.name)), class: 'light edit-project-readme'
%strong
= readme.name
.file-content.wiki .file-content.wiki
= cache(readme_cache_key) do = cache(readme_cache_key) do
= render_readme(readme) = render_readme(readme)
......
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