diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-07-08 14:41:03 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-07-08 14:41:03 +0300 |
commit | bd08ac55c7b8eb1b41862937aa4f7cc7a53e4bfe (patch) | |
tree | 284a3d5206f1fdb4784ebac6fce3b8570a5a47f1 /app/views/projects/show.html.haml | |
parent | 17156cf909fff49ea068b2dc00fd607af20967f8 (diff) |
Recommend user to create README file for both empty and existing project
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/show.html.haml')
-rw-r--r-- | app/views/projects/show.html.haml | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml index ceaf6c8cab3..8fb5f25c2f6 100644 --- a/app/views/projects/show.html.haml +++ b/app/views/projects/show.html.haml @@ -50,10 +50,19 @@ .wiki = render_readme(readme) - else - %h4 - Please - = link_to "add README", namespace_project_new_blob_path(@project.namespace, @project, tree_join(@repository.root_ref), file_name: 'README.md') - file to this repository + %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. + - if current_user |