2015-07-13 16:24:15 +00:00
|
|
|
- if readme = @repository.readme
|
2015-10-17 17:17:31 +00:00
|
|
|
%article.file-holder.readme-holder
|
|
|
|
.file-title
|
|
|
|
= blob_icon readme.mode, readme.name
|
|
|
|
= link_to namespace_project_blob_path(@project.namespace, @project, tree_join(@repository.root_ref, readme.name)) do
|
|
|
|
%strong
|
|
|
|
= readme.name
|
|
|
|
.file-content.wiki
|
2015-07-13 16:24:15 +00:00
|
|
|
= cache(readme_cache_key) do
|
|
|
|
= render_readme(readme)
|
|
|
|
- else
|
|
|
|
%h3.page-title
|
|
|
|
This project does not have README yet
|
|
|
|
- if can?(current_user, :push_code, @project)
|
|
|
|
%p.slead
|
|
|
|
A
|
|
|
|
%code README
|
|
|
|
file contains information about other files in a repository and is commonly
|
|
|
|
distributed with computer software, forming part of its documentation.
|
|
|
|
%br
|
|
|
|
We recommend you to
|
|
|
|
= link_to "add README", new_readme_path, class: 'underlined-link'
|
|
|
|
file to the repository and GitLab will render it here instead of this message.
|