Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9ea72430
Commit
9ea72430
authored
Dec 02, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix padding of no readme and empty repo messages
parent
1c595681
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
20 deletions
+20
-20
app/views/projects/_readme.html.haml
app/views/projects/_readme.html.haml
+13
-12
app/views/projects/empty.html.haml
app/views/projects/empty.html.haml
+6
-7
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+1
-1
No files found.
app/views/projects/_readme.html.haml
View file @
9ea72430
...
...
@@ -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.
app/views/projects/empty.html.haml
View file @
9ea72430
...
...
@@ -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
...
...
app/views/projects/show.html.haml
View file @
9ea72430
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment