2015-09-11 14:41:01 +05:30
|
|
|
- if readme = @repository.readme
|
2015-11-26 14:37:03 +05:30
|
|
|
%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.name)), class: 'light edit-project-readme'
|
|
|
|
.file-content.wiki
|
2017-08-17 22:00:37 +05:30
|
|
|
= markup(readme.name, readme.data, rendered: @repository.rendered_readme)
|
2015-09-11 14:41:01 +05:30
|
|
|
- else
|
2016-06-02 11:05:42 +05:30
|
|
|
.row-content-block.second-block.center
|
2015-12-23 02:04:40 +05:30
|
|
|
%h3.page-title
|
2016-06-02 11:05:42 +05:30
|
|
|
This project does not have a README yet
|
2015-12-23 02:04:40 +05:30
|
|
|
- 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
|
2017-08-17 22:00:37 +05:30
|
|
|
= link_to "add a README", add_special_file_path(@project, file_name: 'README.md'), class: 'underlined-link'
|
2015-12-23 02:04:40 +05:30
|
|
|
file to the repository and GitLab will render it here instead of this message.
|