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
3b3f755b
Commit
3b3f755b
authored
Jan 13, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New layout without background color
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
b433efcf
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
63 additions
and
60 deletions
+63
-60
app/assets/javascripts/activities.js.coffee
app/assets/javascripts/activities.js.coffee
+2
-2
app/assets/stylesheets/framework/blocks.scss
app/assets/stylesheets/framework/blocks.scss
+7
-5
app/assets/stylesheets/framework/files.scss
app/assets/stylesheets/framework/files.scss
+0
-2
app/assets/stylesheets/framework/flash.scss
app/assets/stylesheets/framework/flash.scss
+2
-0
app/assets/stylesheets/framework/header.scss
app/assets/stylesheets/framework/header.scss
+1
-0
app/assets/stylesheets/framework/layout.scss
app/assets/stylesheets/framework/layout.scss
+0
-2
app/assets/stylesheets/framework/lists.scss
app/assets/stylesheets/framework/lists.scss
+2
-4
app/assets/stylesheets/framework/sidebar.scss
app/assets/stylesheets/framework/sidebar.scss
+0
-1
app/assets/stylesheets/framework/tables.scss
app/assets/stylesheets/framework/tables.scss
+2
-4
app/assets/stylesheets/framework/timeline.scss
app/assets/stylesheets/framework/timeline.scss
+1
-3
app/assets/stylesheets/pages/detail_page.scss
app/assets/stylesheets/pages/detail_page.scss
+3
-2
app/assets/stylesheets/pages/events.scss
app/assets/stylesheets/pages/events.scss
+1
-3
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+3
-5
app/helpers/events_helper.rb
app/helpers/events_helper.rb
+5
-3
app/views/groups/show.html.haml
app/views/groups/show.html.haml
+18
-12
app/views/projects/_activity.html.haml
app/views/projects/_activity.html.haml
+1
-1
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+14
-10
app/views/shared/_event_filter.html.haml
app/views/shared/_event_filter.html.haml
+1
-1
No files found.
app/assets/javascripts/activities.js.coffee
View file @
3b3f755b
class
@
Activities
class
@
Activities
constructor
:
->
constructor
:
->
Pager
.
init
20
,
true
Pager
.
init
20
,
true
$
(
".event-filter
.btn
"
).
bind
"click"
,
(
event
)
=>
$
(
".event-filter
a
"
).
bind
"click"
,
(
event
)
=>
event
.
preventDefault
()
event
.
preventDefault
()
@
toggleFilter
(
$
(
event
.
currentTarget
))
@
toggleFilter
(
$
(
event
.
currentTarget
))
@
reloadActivities
()
@
reloadActivities
()
...
@@ -12,7 +12,7 @@ class @Activities
...
@@ -12,7 +12,7 @@ class @Activities
toggleFilter
:
(
sender
)
->
toggleFilter
:
(
sender
)
->
sender
.
toggleClass
"active"
sender
.
parent
().
toggleClass
"active"
event_filters
=
$
.
cookie
(
"event_filter"
)
event_filters
=
$
.
cookie
(
"event_filter"
)
filter
=
sender
.
attr
(
"id"
).
split
(
"_"
)[
0
]
filter
=
sender
.
attr
(
"id"
).
split
(
"_"
)[
0
]
if
event_filters
if
event_filters
...
...
app/assets/stylesheets/framework/blocks.scss
View file @
3b3f755b
...
@@ -20,7 +20,8 @@
...
@@ -20,7 +20,8 @@
.content-block
,
.content-block
,
.gray-content-block
{
.gray-content-block
{
margin
:
-
$gl-padding
;
margin-top
:
-
$gl-padding
;
margin-bottom
:
-
$gl-padding
;
background-color
:
$background-color
;
background-color
:
$background-color
;
padding
:
$gl-padding
;
padding
:
$gl-padding
;
margin-bottom
:
0px
;
margin-bottom
:
0px
;
...
@@ -86,10 +87,7 @@
...
@@ -86,10 +87,7 @@
.cover-block
{
.cover-block
{
text-align
:
center
;
text-align
:
center
;
background
:
$background-color
;
background
:
$background-color
;
margin
:
-
$gl-padding
;
padding-top
:
44px
;
margin-bottom
:
0
;
padding
:
44px
$gl-padding
;
border-bottom
:
1px
solid
$border-color
;
position
:
relative
;
position
:
relative
;
.avatar-holder
{
.avatar-holder
{
...
@@ -131,6 +129,10 @@
...
@@ -131,6 +129,10 @@
right
:
auto
;
right
:
auto
;
}
}
}
}
.cover-menu
{
margin
:
0
;
}
}
}
.block-connector
{
.block-connector
{
...
...
app/assets/stylesheets/framework/files.scss
View file @
3b3f755b
...
@@ -3,8 +3,6 @@
...
@@ -3,8 +3,6 @@
*
*
*/
*/
.file-holder
{
.file-holder
{
margin-left
:
-
$gl-padding
;
margin-right
:
-
$gl-padding
;
border
:
none
;
border
:
none
;
border-top
:
1px
solid
#E7E9EE
;
border-top
:
1px
solid
#E7E9EE
;
border-bottom
:
1px
solid
#E7E9EE
;
border-bottom
:
1px
solid
#E7E9EE
;
...
...
app/assets/stylesheets/framework/flash.scss
View file @
3b3f755b
...
@@ -8,10 +8,12 @@
...
@@ -8,10 +8,12 @@
.flash-notice
{
.flash-notice
{
@extend
.alert
;
@extend
.alert
;
@extend
.alert-info
;
@extend
.alert-info
;
margin
:
0
;
}
}
.flash-alert
{
.flash-alert
{
@extend
.alert
;
@extend
.alert
;
@extend
.alert-danger
;
@extend
.alert-danger
;
margin
:
0
;
}
}
}
}
app/assets/stylesheets/framework/header.scss
View file @
3b3f755b
...
@@ -28,6 +28,7 @@ header {
...
@@ -28,6 +28,7 @@ header {
min-height
:
$header-height
;
min-height
:
$header-height
;
background-color
:
#fff
;
background-color
:
#fff
;
border
:
none
;
border
:
none
;
border-bottom
:
1px
solid
#EEE
;
.container-fluid
{
.container-fluid
{
width
:
100%
!
important
;
width
:
100%
!
important
;
...
...
app/assets/stylesheets/framework/layout.scss
View file @
3b3f755b
...
@@ -5,8 +5,6 @@ html {
...
@@ -5,8 +5,6 @@ html {
}
}
body
{
body
{
background-color
:
#F3F3F3
!
important
;
&
.navless
{
&
.navless
{
background-color
:
white
!
important
;
background-color
:
white
!
important
;
}
}
...
...
app/assets/stylesheets/framework/lists.scss
View file @
3b3f755b
...
@@ -109,10 +109,8 @@ ul.content-list {
...
@@ -109,10 +109,8 @@ ul.content-list {
padding
:
0
;
padding
:
0
;
>
li
{
>
li
{
padding
:
$gl-padding
;
padding
:
$gl-padding
0
;
border-color
:
$table-border-color
;
border-color
:
$table-border-color
;
margin-left
:
-
$gl-padding
;
margin-right
:
-
$gl-padding
;
color
:
$gl-gray
;
color
:
$gl-gray
;
.avatar
{
.avatar
{
...
@@ -148,7 +146,7 @@ ul.controls {
...
@@ -148,7 +146,7 @@ ul.controls {
>
li
{
>
li
{
float
:
left
;
float
:
left
;
margin-right
:
10px
;
margin-right
:
10px
;
&
:last-child
{
&
:last-child
{
margin-right
:
0
;
margin-right
:
0
;
}
}
...
...
app/assets/stylesheets/framework/sidebar.scss
View file @
3b3f755b
...
@@ -21,7 +21,6 @@
...
@@ -21,7 +21,6 @@
.content-wrapper
{
.content-wrapper
{
width
:
100%
;
width
:
100%
;
padding
:
20px
;
.container-fluid
{
.container-fluid
{
background
:
#FFF
;
background
:
#FFF
;
...
...
app/assets/stylesheets/framework/tables.scss
View file @
3b3f755b
.table-holder
{
.table-holder
{
margin
:
-
$gl-padding
;
margin
:
0
;
margin-top
:
0
;
margin-bottom
:
0
;
}
}
table
{
table
{
&
.table
{
&
.table
{
margin-bottom
:
$gl-padding
;
margin-bottom
:
$gl-padding
;
.dropdown-menu
a
{
.dropdown-menu
a
{
text-decoration
:
none
;
text-decoration
:
none
;
}
}
...
...
app/assets/stylesheets/framework/timeline.scss
View file @
3b3f755b
...
@@ -5,10 +5,8 @@
...
@@ -5,10 +5,8 @@
padding
:
0
;
padding
:
0
;
.timeline-entry
{
.timeline-entry
{
padding
:
$gl-padding
;
padding
:
$gl-padding
0
;
border-color
:
$table-border-color
;
border-color
:
$table-border-color
;
margin-left
:
-
$gl-padding
;
margin-right
:
-
$gl-padding
;
color
:
$gl-gray
;
color
:
$gl-gray
;
border-bottom
:
1px
solid
$border-white-light
;
border-bottom
:
1px
solid
$border-white-light
;
...
...
app/assets/stylesheets/pages/detail_page.scss
View file @
3b3f755b
.detail-page-header
{
.detail-page-header
{
margin
:
-
$gl-padding
;
margin-top
:
-
$gl-padding
;
padding
:
7px
$gl-padding
;
margin-bottom
:
-
$gl-padding
;
padding
:
7px
0
;
margin-bottom
:
0px
;
margin-bottom
:
0px
;
border-bottom
:
1px
solid
$border-color
;
border-bottom
:
1px
solid
$border-color
;
color
:
#5c5d5e
;
color
:
#5c5d5e
;
...
...
app/assets/stylesheets/pages/events.scss
View file @
3b3f755b
...
@@ -4,9 +4,7 @@
...
@@ -4,9 +4,7 @@
*/
*/
.event-item
{
.event-item
{
font-size
:
$gl-font-size
;
font-size
:
$gl-font-size
;
padding
:
$gl-padding
$gl-padding
$gl-padding
(
$gl-padding
+
$gl-avatar-size
+
15px
);
padding
:
$gl-padding
0
$gl-padding
(
$gl-avatar-size
+
15px
);
margin-left
:
-
$gl-padding
;
margin-right
:
-
$gl-padding
;
border-bottom
:
1px
solid
$table-border-color
;
border-bottom
:
1px
solid
$table-border-color
;
color
:
#7f8fa4
;
color
:
#7f8fa4
;
...
...
app/assets/stylesheets/pages/projects.scss
View file @
3b3f755b
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
}
}
.project-home-panel
{
.project-home-panel
{
padding-bottom
:
40px
;
border-bottom
:
1px
solid
$border-color
;
.cover-controls
{
.cover-controls
{
.project-settings-dropdown
{
.project-settings-dropdown
{
...
@@ -416,8 +418,6 @@ ul.nav.nav-projects-tabs {
...
@@ -416,8 +418,6 @@ ul.nav.nav-projects-tabs {
.top-area
{
.top-area
{
border-bottom
:
1px
solid
#EEE
;
border-bottom
:
1px
solid
#EEE
;
margin
:
0
-16px
;
padding
:
0
$gl-padding
;
height
:
42px
;
height
:
42px
;
ul
.left-top-menu
{
ul
.left-top-menu
{
...
@@ -574,10 +574,8 @@ pre.light-well {
...
@@ -574,10 +574,8 @@ pre.light-well {
@include
basic-list
;
@include
basic-list
;
.project-row
{
.project-row
{
padding
:
$gl-padding
;
padding
:
$gl-padding
0
;
border-color
:
$table-border-color
;
border-color
:
$table-border-color
;
margin-left
:
-
$gl-padding
;
margin-right
:
-
$gl-padding
;
&
.no-description
{
&
.no-description
{
.project
{
.project
{
...
...
app/helpers/events_helper.rb
View file @
3b3f755b
...
@@ -27,13 +27,15 @@ module EventsHelper
...
@@ -27,13 +27,15 @@ module EventsHelper
key
=
key
.
to_s
key
=
key
.
to_s
active
=
'active'
if
@event_filter
.
active?
(
key
)
active
=
'active'
if
@event_filter
.
active?
(
key
)
link_opts
=
{
link_opts
=
{
class:
"event-filter-link
btn btn-default
#{
active
}
"
,
class:
"event-filter-link"
,
id:
"
#{
key
}
_event_filter"
,
id:
"
#{
key
}
_event_filter"
,
title:
"Filter by
#{
tooltip
.
downcase
}
"
,
title:
"Filter by
#{
tooltip
.
downcase
}
"
,
}
}
link_to
request
.
path
,
link_opts
do
content_tag
:li
,
class:
active
do
content_tag
(
:span
,
' '
+
tooltip
)
link_to
request
.
path
,
link_opts
do
content_tag
(
:span
,
' '
+
tooltip
)
end
end
end
end
end
...
...
app/views/groups/show.html.haml
View file @
3b3f755b
...
@@ -5,6 +5,9 @@
...
@@ -5,6 +5,9 @@
-
if
current_user
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@group
.
name
}
activity"
)
=
auto_discovery_link_tag
(
:atom
,
group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@group
.
name
}
activity"
)
-
@no_container
=
true
-
@blank_container
=
true
.cover-block
.cover-block
.cover-controls
.cover-controls
-
if
@group
&&
can?
(
current_user
,
:admin_group
,
@group
)
-
if
@group
&&
can?
(
current_user
,
:admin_group
,
@group
)
...
@@ -25,8 +28,8 @@
...
@@ -25,8 +28,8 @@
.cover-desc.description
.cover-desc.description
=
markdown
(
@group
.
description
,
pipeline: :description
)
=
markdown
(
@group
.
description
,
pipeline: :description
)
-
if
can?
(
current_user
,
:read_group
,
@group
)
%ul
.center-top-menu.
no-top
%ul
.center-top-menu.
cover-menu
%li
.active
%li
.active
=
link_to
"#activity"
,
'data-toggle'
=>
'tab'
do
=
link_to
"#activity"
,
'data-toggle'
=>
'tab'
do
Activity
Activity
...
@@ -35,19 +38,22 @@
...
@@ -35,19 +38,22 @@
=
link_to
"#projects"
,
'data-toggle'
=>
'tab'
do
=
link_to
"#projects"
,
'data-toggle'
=>
'tab'
do
Projects
Projects
.tab-content
-
if
can?
(
current_user
,
:read_group
,
@group
)
.tab-pane.active
#activity
.gray-content-block.activity-filter-block
%div
{
class:
container_class
}
-
if
current_user
.tab-content
=
render
"events/event_last_push"
,
event:
@last_push
.tab-pane.active
#activity
.activity-filter-block
-
if
current_user
=
render
"events/event_last_push"
,
event:
@last_push
=
render
'shared/event_filter'
=
render
'shared/event_filter'
.content_list
.content_list
=
spinner
=
spinner
.tab-pane
#projects
.tab-pane
#projects
=
render
"projects"
,
projects:
@projects
=
render
"projects"
,
projects:
@projects
-
else
-
else
%p
.center-top-menu.no-top
%p
.center-top-menu.no-top
...
...
app/views/projects/_activity.html.haml
View file @
3b3f755b
.
gray-content-block.
activity-filter-block
.activity-filter-block
-
if
current_user
-
if
current_user
.pull-right
.pull-right
=
link_to
namespace_project_path
(
@project
.
namespace
,
@project
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"Feed"
,
class:
'btn rss-btn'
do
=
link_to
namespace_project_path
(
@project
.
namespace
,
@project
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"Feed"
,
class:
'btn rss-btn'
do
...
...
app/views/projects/show.html.haml
View file @
3b3f755b
...
@@ -7,8 +7,10 @@
...
@@ -7,8 +7,10 @@
=
render
'shared/no_ssh'
=
render
'shared/no_ssh'
=
render
'shared/no_password'
=
render
'shared/no_password'
=
render
'projects/last_push'
-
@no_container
=
true
-
@blank_container
=
true
=
render
'projects/last_push'
=
render
"home_panel"
=
render
"home_panel"
.project-stats.gray-content-block.second-block
.project-stats.gray-content-block.second-block
...
@@ -57,15 +59,17 @@
...
@@ -57,15 +59,17 @@
=
link_to
add_contribution_guide_path
(
@project
)
do
=
link_to
add_contribution_guide_path
(
@project
)
do
Add Contribution guide
Add Contribution guide
-
if
@project
.
archived?
.text-warning.center.prepend-top-20
%p
=
icon
(
"exclamation-triangle fw"
)
Archived project! Repository is read-only
-
if
@repository
.
commit
-
if
@repository
.
commit
.content-block.second-block.white
.content-block.second-block.white
=
render
'projects/last_commit'
,
commit:
@repository
.
commit
,
project:
@project
%div
{
class:
container_class
}
=
render
'projects/last_commit'
,
commit:
@repository
.
commit
,
project:
@project
%div
{
class:
container_class
}
-
if
@project
.
archived?
.text-warning.center.prepend-top-20
%p
=
icon
(
"exclamation-triangle fw"
)
Archived project! Repository is read-only
%div
{
class:
"project-show-#{default_project_view}"
}
%div
{
class:
"project-show-#{default_project_view}"
}
=
render
default_project_view
=
render
default_project_view
app/views/shared/_event_filter.html.haml
View file @
3b3f755b
.btn-group.btn-group-next.event-filter
%ul
.left-top-menu.event-filter.no-top
=
event_filter_link
EventFilter
.
push
,
'Push events'
=
event_filter_link
EventFilter
.
push
,
'Push events'
=
event_filter_link
EventFilter
.
merged
,
'Merge events'
=
event_filter_link
EventFilter
.
merged
,
'Merge events'
=
event_filter_link
EventFilter
.
comments
,
'Comments'
=
event_filter_link
EventFilter
.
comments
,
'Comments'
...
...
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