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
Boxiang Sun
gitlab-ce
Commits
ac01a1b1
Commit
ac01a1b1
authored
Mar 30, 2017
by
tauriedavis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
20914 Limits line length for project home page
fix lint issues
parent
8f93280e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
app/views/projects/_home_panel.html.haml
app/views/projects/_home_panel.html.haml
+1
-1
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+3
-3
changelogs/unreleased/20914-project-home-width.yml
changelogs/unreleased/20914-project-home-width.yml
+4
-0
No files found.
app/views/projects/_home_panel.html.haml
View file @
ac01a1b1
-
empty_repo
=
@project
.
empty_repo?
-
empty_repo
=
@project
.
empty_repo?
.project-home-panel.text-center
{
class:
(
"empty-project"
if
empty_repo
)
}
.project-home-panel.text-center
{
class:
(
"empty-project"
if
empty_repo
)
}
%div
{
class:
container_class
}
.limit-container-width
{
class:
container_class
}
.avatar-container.s70.project-avatar
.avatar-container.s70.project-avatar
=
project_icon
(
@project
,
alt:
@project
.
name
,
class:
'avatar s70 avatar-tile'
)
=
project_icon
(
@project
,
alt:
@project
.
name
,
class:
'avatar s70 avatar-tile'
)
%h1
.project-title
%h1
.project-title
...
...
app/views/projects/show.html.haml
View file @
ac01a1b1
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
=
render
"home_panel"
=
render
"home_panel"
-
if
current_user
&&
can?
(
current_user
,
:download_code
,
@project
)
-
if
current_user
&&
can?
(
current_user
,
:download_code
,
@project
)
%nav
.project-stats
{
class:
container_class
}
%nav
.project-stats
.limit-container-width
{
class:
container_class
}
%ul
.nav
%ul
.nav
%li
%li
=
link_to
project_files_path
(
@project
)
do
=
link_to
project_files_path
(
@project
)
do
...
@@ -74,11 +74,11 @@
...
@@ -74,11 +74,11 @@
Set up auto deploy
Set up auto deploy
-
if
@repository
.
commit
-
if
@repository
.
commit
%div
{
class:
container_class
}
.limit-container-width
{
class:
container_class
}
.project-last-commit
.project-last-commit
=
render
'projects/last_commit'
,
commit:
@repository
.
commit
,
ref:
current_ref
,
project:
@project
=
render
'projects/last_commit'
,
commit:
@repository
.
commit
,
ref:
current_ref
,
project:
@project
%div
{
class:
container_class
}
.limit-container-width
{
class:
container_class
}
-
if
@project
.
archived?
-
if
@project
.
archived?
.text-warning.center.prepend-top-20
.text-warning.center.prepend-top-20
%p
%p
...
...
changelogs/unreleased/20914-project-home-width.yml
0 → 100644
View file @
ac01a1b1
---
title
:
Limit line length for project home page
merge_request
:
author
:
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