summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-05-18 12:56:02 -0500
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-05-19 11:11:53 +0300
commit3496476205a7361a39e714eb9df7ad321b525ea2 (patch)
tree994154f81ad40a7f9477ad3f94cd4d0b6e1f6211 /app/views
parent01a7f333026ab7031122075d1c797423005ca56b (diff)
downloadgitlab-ce-3496476205a7361a39e714eb9df7ad321b525ea2.tar.gz
Remove readme project_view option
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/_readme.html.haml21
1 files changed, 0 insertions, 21 deletions
diff --git a/app/views/projects/_readme.html.haml b/app/views/projects/_readme.html.haml
deleted file mode 100644
index cf09d9db6b7..00000000000
--- a/app/views/projects/_readme.html.haml
+++ /dev/null
@@ -1,21 +0,0 @@
-- if readme = @repository.readme
- %article.readme-holder
- .pull-right
- - if can?(current_user, :push_code, @project)
- = link_to icon('pencil'), namespace_project_edit_blob_path(@project.namespace, @project, tree_join(@repository.root_ref, readme.path)), class: 'light edit-project-readme'
-
- = render 'projects/blob/viewer', viewer: readme.rich_viewer, viewer_url: namespace_project_blob_path(@project.namespace, @project, tree_join(@repository.root_ref, readme.path), viewer: :rich, format: :json)
-- else
- .row-content-block.second-block.center
- %h3.page-title
- This project does not have a README yet
- - if can?(current_user, :push_code, @project)
- %p
- A
- %code README
- file contains information about other files in a repository and is commonly
- distributed with computer software, forming part of its documentation.
- %p
- We recommend you to
- = link_to "add a README", add_special_file_path(@project, file_name: 'README.md'), class: 'underlined-link'
- file to the repository and GitLab will render it here instead of this message.