BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
a56f8fdd
Commit
a56f8fdd
authored
Mar 24, 2017
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'projects-list-line-breaks' into 'master'
Fixes project list lines breaking Closes #29018 See merge request !10178
parents
eee409e0
4b08d892
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
70 additions
and
65 deletions
+70
-65
projects.scss
app/assets/stylesheets/pages/projects.scss
+35
-34
_list.html.haml
app/views/shared/projects/_list.html.haml
+1
-1
_project.html.haml
app/views/shared/projects/_project.html.haml
+30
-30
projects-list-line-breaks.yml
changelogs/unreleased/projects-list-line-breaks.yml
+4
-0
No files found.
app/assets/stylesheets/pages/projects.scss
View file @
a56f8fdd
...
...
@@ -582,54 +582,55 @@ pre.light-well {
/*
* Projects list rendered on dashboard and user page
*/
.projects-list
{
@include
basic-list
;
display
:
flex
;
flex-direction
:
column
;
.project-row
{
border-color
:
$white-normal
;
.project-full-name
{
@include
str-truncated
;
display
:
flex
;
align-items
:
center
;
}
@media
(
max-width
:
$screen-xs-max
)
{
max-width
:
50%
;
}
}
h3
{
font-size
:
$gl-font-size
;
}
.controls
{
line-height
:
$list-text-height
;
a
{
color
:
$gl-text-color
;
}
.badge
{
@media
(
max-width
:
$screen-xs-max
)
{
display
:
none
;
}
}
.avatar-container
,
.controls
{
flex
:
0
0
auto
;
}
a
:hov
er
{
text-decoration
:
none
;
}
.avatar-contain
er
{
align-self
:
flex-start
;
}
>
span
{
margin-left
:
10px
;
}
.project-details
{
min-width
:
0
;
svg
{
position
:
relative
;
top
:
2px
;
}
p
,
.commit-row-message
{
@include
str-truncated
(
100%
)
;
margin-bottom
:
0
;
}
}
.description
p
{
@media
(
max-width
:
$screen-xs-max
)
{
max-width
:
50%
;
}
}
.controls
{
margin-left
:
auto
;
}
.bottom
{
padding-top
:
$gl-padding
;
padding-bottom
:
0
;
.ci-status-link
{
display
:
inline-block
;
line-height
:
17px
;
vertical-align
:
middle
;
&
:hover
{
text-decoration
:
none
;
}
}
}
...
...
app/views/shared/projects/_list.html.haml
View file @
a56f8fdd
...
...
@@ -10,7 +10,7 @@
.js-projects-list-holder
-
if
projects
.
any?
%ul
.projects-list
.content-list
%ul
.projects-list
-
projects
.
each_with_index
do
|
project
,
i
|
-
css_class
=
(
i
>=
projects_limit
)
?
'hide'
:
nil
=
render
"shared/projects/project"
,
project:
project
,
skip_namespace:
skip_namespace
,
...
...
app/views/shared/projects/_project.html.haml
View file @
a56f8fdd
...
...
@@ -10,44 +10,44 @@
%li
.project-row
{
class:
css_class
}
=
cache
(
cache_key
)
do
-
if
avatar
.avatar-container.s40
-
if
use_creator_avatar
=
image_tag
avatar_icon
(
project
.
creator
.
email
,
40
),
class:
"avatar s40"
,
alt
:''
-
else
=
project_icon
(
project
,
alt:
''
,
class:
'avatar project-avatar s40'
)
.project-details
%h3
.prepend-top-0.append-bottom-0
=
link_to
project_path
(
project
),
class:
dom_class
(
project
)
do
%span
.project-full-name
%span
.namespace-name
-
if
project
.
namespace
&&
!
skip_namespace
=
project
.
namespace
.
human_name
\/
%span
.project-name.filter-title
=
project
.
name
-
if
show_last_commit_as_description
.description.prepend-top-5
=
link_to_gfm
project
.
commit
.
title
,
namespace_project_commit_path
(
project
.
namespace
,
project
,
project
.
commit
),
class:
"commit-row-message"
-
elsif
project
.
description
.
present?
.description.prepend-top-5
=
markdown_field
(
project
,
:description
)
.controls
-
if
project
.
archived
%span
.label.label-warning
archived
%span
.
prepend-left-10.
label.label-warning
archived
-
if
project
.
pipeline_status
.
has_status?
%span
%span
.prepend-left-10
=
render_project_pipeline_status
(
project
.
pipeline_status
)
-
if
forks
%span
%span
.prepend-left-10
=
icon
(
'code-fork'
)
=
number_with_delimiter
(
project
.
forks_count
)
-
if
stars
%span
%span
.prepend-left-10
=
icon
(
'star'
)
=
number_with_delimiter
(
project
.
star_count
)
%span
.visibility-icon.has-tooltip
{
data:
{
container:
'body'
,
placement:
'left'
},
title:
visibility_icon_description
(
project
)
}
%span
.
prepend-left-10.
visibility-icon.has-tooltip
{
data:
{
container:
'body'
,
placement:
'left'
},
title:
visibility_icon_description
(
project
)
}
=
visibility_level_icon
(
project
.
visibility_level
,
fw:
true
)
.title
=
link_to
project_path
(
project
),
class:
dom_class
(
project
)
do
-
if
avatar
.dash-project-avatar
.avatar-container.s40
-
if
use_creator_avatar
=
image_tag
avatar_icon
(
project
.
creator
.
email
,
40
),
class:
"avatar s40"
,
alt
:''
-
else
=
project_icon
(
project
,
alt:
''
,
class:
'avatar project-avatar s40'
)
%span
.project-full-name
%span
.namespace-name
-
if
project
.
namespace
&&
!
skip_namespace
=
project
.
namespace
.
human_name
\/
%span
.project-name.filter-title
=
project
.
name
-
if
show_last_commit_as_description
.description
=
link_to_gfm
project
.
commit
.
title
,
namespace_project_commit_path
(
project
.
namespace
,
project
,
project
.
commit
),
class:
"commit-row-message"
-
elsif
project
.
description
.
present?
.description
=
markdown_field
(
project
,
:description
)
changelogs/unreleased/projects-list-line-breaks.yml
0 → 100644
View file @
a56f8fdd
---
title
:
Fixed projects list lines breaking
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