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
0
Merge Requests
0
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
Tatuya Kamada
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
Show 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 @@
...
@@ -7,15 +7,16 @@
=
cache
(
readme_cache_key
)
do
=
cache
(
readme_cache_key
)
do
=
render_readme
(
readme
)
=
render_readme
(
readme
)
-
else
-
else
.gray-content-block.second-block.center
%h3
.page-title
%h3
.page-title
This project does not have README yet
This project does not have README yet
-
if
can?
(
current_user
,
:push_code
,
@project
)
-
if
can?
(
current_user
,
:push_code
,
@project
)
%p
.slead
%p
A
A
%code
README
%code
README
file contains information about other files in a repository and is commonly
file contains information about other files in a repository and is commonly
distributed with computer software, forming part of its documentation.
distributed with computer software, forming part of its documentation.
%
br
%
p
We recommend you to
We recommend you to
=
link_to
"add README"
,
new_readme_path
,
class:
'underlined-link'
=
link_to
"add README"
,
new_readme_path
,
class:
'underlined-link'
file to the repository and GitLab will render it here instead of this message.
file to the repository and GitLab will render it here instead of this message.
app/views/projects/empty.html.haml
View file @
9ea72430
...
@@ -5,14 +5,13 @@
...
@@ -5,14 +5,13 @@
=
render
"home_panel"
=
render
"home_panel"
.gray-content-block.center
.gray-content-block.
second-block.
center
%h3
.page-title
%h3
.page-title
The repository for this project is empty
The repository for this project is empty
-
if
can?
(
current_user
,
:
download
_code
,
@project
)
-
if
can?
(
current_user
,
:
push
_code
,
@project
)
%p
%p
If you already have files you can push them using command line instructions below.
If you already have files you can push them using command line instructions below.
%br
%p
-
if
can?
(
current_user
,
:push_code
,
@project
)
Otherwise you can start with
Otherwise you can start with
=
link_to
"adding README"
,
new_readme_path
,
class:
'underlined-link'
=
link_to
"adding README"
,
new_readme_path
,
class:
'underlined-link'
file to this project.
file to this project.
...
...
app/views/projects/show.html.haml
View file @
9ea72430
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
=
render
"home_panel"
=
render
"home_panel"
.project-stats.gray-content-block
.project-stats.gray-content-block
.second-block
%ul
.nav.nav-pills
%ul
.nav.nav-pills
%li
%li
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
current_ref
)
do
=
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