Fix padding of no readme and empty repo messages
This commit is contained in:
parent
1c595681e5
commit
9ea7243092
3 changed files with 20 additions and 20 deletions
|
@ -7,15 +7,16 @@
|
|||
= 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.
|
||||
.gray-content-block.second-block.center
|
||||
%h3.page-title
|
||||
This project does not have 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 README", new_readme_path, class: 'underlined-link'
|
||||
file to the repository and GitLab will render it here instead of this message.
|
||||
|
|
|
@ -5,17 +5,16 @@
|
|||
|
||||
= render "home_panel"
|
||||
|
||||
.gray-content-block.center
|
||||
.gray-content-block.second-block.center
|
||||
%h3.page-title
|
||||
The repository for this project is empty
|
||||
- if can?(current_user, :download_code, @project)
|
||||
- if can?(current_user, :push_code, @project)
|
||||
%p
|
||||
If you already have files you can push them using command line instructions below.
|
||||
%br
|
||||
- if can?(current_user, :push_code, @project)
|
||||
Otherwise you can start with
|
||||
= link_to "adding README", new_readme_path, class: 'underlined-link'
|
||||
file to this project.
|
||||
%p
|
||||
Otherwise you can start with
|
||||
= link_to "adding README", new_readme_path, class: 'underlined-link'
|
||||
file to this project.
|
||||
|
||||
- if can?(current_user, :download_code, @project)
|
||||
.prepend-top-20
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
= render "home_panel"
|
||||
|
||||
.project-stats.gray-content-block
|
||||
.project-stats.gray-content-block.second-block
|
||||
%ul.nav.nav-pills
|
||||
%li
|
||||
= link_to namespace_project_commits_path(@project.namespace, @project, current_ref) do
|
||||
|
|
Loading…
Reference in a new issue