2015-07-13 12:24:15 -04:00
|
|
|
- if readme = @repository.readme
|
2015-10-22 11:11:21 -04:00
|
|
|
%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'
|
2015-10-17 13:17:31 -04:00
|
|
|
.file-content.wiki
|
2015-07-13 12:24:15 -04:00
|
|
|
= cache(readme_cache_key) do
|
|
|
|
= render_readme(readme)
|
|
|
|
- else
|
2016-04-25 16:02:15 -04:00
|
|
|
.row-content-block.second-block.center
|
2015-12-02 08:49:46 -05:00
|
|
|
%h3.page-title
|
2016-04-11 09:49:25 -04:00
|
|
|
This project does not have a README yet
|
2015-12-02 08:49:46 -05:00
|
|
|
- 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
|
2016-12-02 12:04:03 -05:00
|
|
|
= link_to "add a README", add_special_file_path(@project, file_name: 'README.md'), class: 'underlined-link'
|
2015-12-02 08:49:46 -05:00
|
|
|
file to the repository and GitLab will render it here instead of this message.
|