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
5bb7fa1b
Commit
5bb7fa1b
authored
May 19, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Redesign project page header
parent
5ba52693
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
208 additions
and
119 deletions
+208
-119
app/assets/stylesheets/framework/avatar.scss
app/assets/stylesheets/framework/avatar.scss
+1
-0
app/assets/stylesheets/framework/blocks.scss
app/assets/stylesheets/framework/blocks.scss
+5
-6
app/assets/stylesheets/framework/mobile.scss
app/assets/stylesheets/framework/mobile.scss
+0
-4
app/assets/stylesheets/framework/nav.scss
app/assets/stylesheets/framework/nav.scss
+9
-0
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+2
-2
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+119
-36
app/views/layouts/nav/_project.html.haml
app/views/layouts/nav/_project.html.haml
+1
-1
app/views/projects/_home_panel.html.haml
app/views/projects/_home_panel.html.haml
+27
-27
app/views/projects/buttons/_dropdown.html.haml
app/views/projects/buttons/_dropdown.html.haml
+1
-1
app/views/projects/buttons/_notifications.html.haml
app/views/projects/buttons/_notifications.html.haml
+3
-3
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+39
-38
app/views/shared/_clone_panel.html.haml
app/views/shared/_clone_panel.html.haml
+1
-1
No files found.
app/assets/stylesheets/framework/avatar.scss
View file @
5bb7fa1b
...
...
@@ -45,6 +45,7 @@
&
.s32
{
font-size
:
20px
;
line-height
:
32px
;
}
&
.s40
{
font-size
:
16px
;
line-height
:
40px
;
}
&
.s60
{
font-size
:
32px
;
line-height
:
60px
;
}
&
.s70
{
font-size
:
34px
;
line-height
:
70px
;
}
&
.s90
{
font-size
:
36px
;
line-height
:
90px
;
}
&
.s110
{
font-size
:
40px
;
line-height
:
112px
;
font-weight
:
300
;
}
&
.s140
{
font-size
:
72px
;
line-height
:
140px
;
}
...
...
app/assets/stylesheets/framework/blocks.scss
View file @
5bb7fa1b
...
...
@@ -24,8 +24,8 @@
background-color
:
$background-color
;
padding
:
$gl-padding
;
margin-bottom
:
0
;
border-top
:
1px
solid
$
border-color
;
border-bottom
:
1px
solid
$
border-color
;
border-top
:
1px
solid
$
white-dark
;
border-bottom
:
1px
solid
$
white-dark
;
color
:
$gl-gray
;
&
.oneline-block
{
...
...
@@ -110,9 +110,9 @@
.cover-title
{
color
:
$gl-header-color
;
margin
:
0
;
font-size
:
2
3
px
;
font-size
:
2
4
px
;
font-weight
:
normal
;
margin
:
16px
0
5px
;
margin
-bottom
:
5px
;
color
:
#4c4e54
;
font-size
:
23px
;
line-height
:
1
.1
;
...
...
@@ -137,7 +137,6 @@
}
.cover-desc
{
padding
:
0
$gl-padding
3px
;
color
:
$gl-text-color
;
&
.username
:last-child
{
...
...
@@ -205,7 +204,7 @@
.content-block
{
padding
:
$gl-padding
0
;
border-bottom
:
1px
solid
$
border-color
;
border-bottom
:
1px
solid
$
white-dark
;
&
.oneline-block
{
line-height
:
36px
;
...
...
app/assets/stylesheets/framework/mobile.scss
View file @
5bb7fa1b
...
...
@@ -48,10 +48,6 @@
display
:
block
;
}
.project-home-desc
{
font-size
:
21px
;
}
.project-repo-buttons
,
.git-clone-holder
{
display
:
none
;
...
...
app/assets/stylesheets/framework/nav.scss
View file @
5bb7fa1b
...
...
@@ -250,6 +250,11 @@
height
:
51px
;
white-space
:
nowrap
;
overflow-x
:
auto
;
overflow-y
:
hidden
;
-webkit-overflow-scrolling
:
touch
;
&
:
:-
webkit-scrollbar
{
display
:
none
;
}
li
{
...
...
@@ -283,4 +288,8 @@
margin-top
:
96px
;
}
}
.right-sidebar
{
top
:
102px
;
}
}
app/assets/stylesheets/framework/variables.scss
View file @
5bb7fa1b
...
...
@@ -119,8 +119,8 @@ $border-white-light: #f1f2f4;
$border-white-normal
:
#d6dae2
;
$border-white-dark
:
#c6cacf
;
$border-gray-light
:
rgba
(
0
,
0
,
0
,
0
.06
);
$border-gray-normal
:
rgba
(
0
,
0
,
0
,
0
.10
);
;
$border-gray-light
:
rgba
(
209
,
209
,
209
,
0
.70
);
$border-gray-normal
:
rgba
(
0
,
0
,
0
,
0
.10
);
$border-gray-dark
:
#c6cacf
;
$border-green-light
:
#2faa60
;
...
...
app/assets/stylesheets/pages/projects.scss
View file @
5bb7fa1b
...
...
@@ -26,8 +26,13 @@
}
.project-home-panel
{
padding-bottom
:
40px
;
border-bottom
:
1px
solid
$border-color
;
background
:
$white-light
;
text-align
:
left
;
padding
:
24px
0
;
.container-fluid
{
position
:
relative
;
}
.cover-controls
{
.project-settings-dropdown
{
...
...
@@ -43,21 +48,50 @@
}
}
.project-identicon-holder
{
margin-bottom
:
16px
;
.project-image-container
{
@include
make-sm-column
(
1
);
max-width
:
86px
;
min-width
:
86px
;
padding-right
:
0
;
.avatar
,
.identicon
{
margin
:
0
auto
;
float
:
none
;
@media
(
max-width
:
$screen-md-max
)
{
padding-left
:
0
;
margin-bottom
:
10px
;
max-width
:
none
;
min-width
:
none
;
.avatar.s70
{
margin
:
auto
;
}
}
}
.project-info
{
@include
make-sm-column
(
10
);
h1
{
font-size
:
24px
;
font-weight
:
normal
;
margin
:
0
;
}
.project-home-desc
{
p
{
margin
:
0
;
}
}
}
.identicon
{
float
:
left
;
@include
border-radius
(
50%
);
}
.avatar
{
float
:
none
;
}
.notifications-btn
{
margin-top
:
-28px
;
.fa-bell
{
margin-right
:
6px
;
...
...
@@ -69,28 +103,45 @@
}
.project-repo-buttons
{
margin-top
:
20px
;
margin-bottom
:
0
;
font-size
:
0
;
.count-buttons
{
display
:
block
;
margin-bottom
:
20px
;
.btn
{
@include
btn-gray
;
padding
:
3px
10px
;
text-transform
:
none
;
background-color
:
$background-color
;
.fa
{
color
:
$layout-link-gray
;
}
.clone-row
{
.split-repo-buttons
,
.project-clone-holder
{
display
:
inline-block
;
.fa-caret-down
{
margin-left
:
3px
;
}
}
.btn-group
:not
(
:first-child
)
:not
(
:last-child
)
>
.btn
{
border-top-right-radius
:
3px
;
border-bottom-right-radius
:
3px
;
}
.split-repo-buttons
{
margin
:
0
12
px
;
form
{
margin-left
:
10
px
;
}
.count-buttons
{
display
:
inline-block
;
vertical-align
:
top
;
margin-top
:
16px
;
}
.btn
{
@include
btn-gray
;
text-transform
:
none
;
.project-clone-holder
{
display
:
inline-block
;
margin-top
:
16px
;
input
{
height
:
29px
;
}
}
.count-with-arrow
{
...
...
@@ -140,14 +191,14 @@
line-height
:
13px
;
padding
:
$gl-vert-padding
$gl-padding
;
letter-spacing
:
.4px
;
padding
:
10
px
14px
;
padding
:
7
px
14px
;
text-align
:
center
;
vertical-align
:
middle
;
touch-action
:
manipulation
;
cursor
:
pointer
;
background-image
:
none
;
white-space
:
nowrap
;
margin
:
0
1
1
px
0
4px
;
margin
:
0
1
0
px
0
4px
;
&
:hover
{
background
:
#fff
;
...
...
@@ -155,6 +206,30 @@
}
}
}
.project-right-buttons
{
position
:
absolute
;
right
:
16px
;
bottom
:
0
;
.btn
{
padding
:
3px
10px
;
background-color
:
$background-color
;
}
@media
(
max-width
:
1304px
)
{
top
:
-6px
;
}
}
@media
(
max-width
:
$screen-md-max
)
{
text-align
:
center
;
.project-info
,
.project-image-container
{
width
:
100%
;
}
}
}
.split-one
{
...
...
@@ -285,11 +360,11 @@ a.deploy-project-label {
}
.project-stats
{
text-align
:
center
;
margin-top
:
$gl-padding
;
margin-bottom
:
0
;
padding-top
:
10px
;
padding-bottom
:
4px
;
padding
:
16px
0
;
background-color
:
$white-light
;
font-size
:
0
;
ul
.nav
{
display
:
inline-block
;
...
...
@@ -300,12 +375,11 @@ a.deploy-project-label {
}
.nav
>
li
>
a
{
@include
btn-default
;
@include
btn-gray
;
background-color
:
transparent
;
border
:
1px
solid
#f7f8fa
;
margin-left
:
12px
;
margin-right
:
12px
;
padding
:
0
10px
;
font-size
:
15px
;
color
:
$notes-light-color
;
}
li
{
...
...
@@ -325,6 +399,10 @@ a.deploy-project-label {
background-color
:
#f0f2f5
;
}
}
&
.row-content-block.second-block
{
margin-top
:
0
;
}
}
pre
.light-well
{
...
...
@@ -442,9 +520,14 @@ pre.light-well {
border-top
:
0
;
.edit-project-readme
{
z-index
:
100
;
z-index
:
2
;
position
:
relative
;
}
.wiki
h1
{
border-bottom
:
none
;
padding
:
0
;
}
}
.git-clone-holder
{
...
...
app/views/layouts/nav/_project.html.haml
View file @
5bb7fa1b
...
...
@@ -2,7 +2,7 @@
.controls
-
access
=
user_max_access_in_project
(
current_user
.
id
,
@project
)
-
can_edit
=
can?
(
current_user
,
:admin_project
,
@project
)
%span
.dropdown.project-settings-dropdown
.dropdown.project-settings-dropdown
%a
.dropdown-new.btn.btn-default
#project-settings-button
{
href:
'#'
,
'data-toggle'
=>
'dropdown'
}
=
icon
(
'cog'
)
=
icon
(
'caret-down'
)
...
...
app/views/projects/_home_panel.html.haml
View file @
5bb7fa1b
-
empty_repo
=
@project
.
empty_repo?
.project-home-panel.cover-block.clearfix
{
:class
=>
(
"empty-project"
if
empty_repo
)}
.project-identicon-holder
=
project_icon
(
@project
,
alt:
''
,
class:
'project-avatar avatar s90'
)
.container-fluid.container-limited
.row
.project-image-container
=
project_icon
(
@project
,
alt:
''
,
class:
'project-avatar avatar s70'
)
.project-info
.cover-title.project-home-desc
%h1
=
@project
.
name
...
...
@@ -19,19 +22,16 @@
=
forked_from_project
.
namespace
.
try
(
:name
)
.project-repo-buttons
.split-one
.count-buttons
.count-buttons
=
render
'projects/buttons/star'
=
render
'projects/buttons/fork'
.clone-row
.project-clone-holder
=
render
"shared/clone_panel"
.split-repo-buttons
.btn-group.pull-left
.project-repo-buttons.btn-group.project-right-buttons
=
render
"projects/buttons/download"
=
render
'projects/buttons/dropdown'
=
render
'projects/buttons/notifications'
:javascript
...
...
app/views/projects/buttons/_dropdown.html.haml
View file @
5bb7fa1b
...
...
@@ -2,7 +2,7 @@
.btn-group
%a
.btn.dropdown-toggle
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
=
icon
(
'plus'
)
%ul
.dropdown-menu.dropdown-menu-right.project-home-dropdown
%ul
.dropdown-menu.dropdown-menu-
align-
right.project-home-dropdown
-
can_create_issue
=
can?
(
current_user
,
:create_issue
,
@project
)
-
merge_project
=
can?
(
current_user
,
:create_merge_request
,
@project
)
?
@project
:
(
current_user
&&
current_user
.
fork_of
(
@project
))
-
can_create_snippet
=
can?
(
current_user
,
:create_snippet
,
@project
)
...
...
app/views/projects/buttons/_notifications.html.haml
View file @
5bb7fa1b
-
if
@notification_setting
=
form_for
@notification_setting
,
url:
namespace_project_notification_setting_path
(
@project
.
namespace
.
becomes
(
Namespace
),
@project
),
method: :patch
,
remote:
true
,
html:
{
class:
'inline'
,
id:
'notification-form'
}
do
|
f
|
=
f
.
hidden_field
:level
%span
.dropdown
.dropdown
%a
.dropdown-new.btn.notifications-btn
#notifications-button
{
href:
'#'
,
"data-toggle"
=>
"dropdown"
}
=
icon
(
'bell'
)
=
notification_title
(
@notification_setting
.
level
)
=
icon
(
'
angle
-down'
)
%ul
.dropdown-menu.dropdown-menu-right.project-home-dropdown
=
icon
(
'
caret
-down'
)
%ul
.dropdown-menu.dropdown-menu-
align-
right.project-home-dropdown
-
NotificationSetting
.
levels
.
each
do
|
level
|
=
notification_list_item
(
level
.
first
,
@notification_setting
)
app/views/projects/show.html.haml
View file @
5bb7fa1b
...
...
@@ -13,6 +13,7 @@
=
render
"home_panel"
.project-stats.row-content-block.second-block
.container-fluid.container-limited
%ul
.nav
%li
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
current_ref
)
do
...
...
app/views/shared/_clone_panel.html.haml
View file @
5bb7fa1b
...
...
@@ -5,7 +5,7 @@
%a
#clone-dropdown
.clone-dropdown-btn.btn
{
href:
'#'
,
'data-toggle'
=>
'dropdown'
}
%span
=
default_clone_protocol
.
upcase
=
icon
(
'
angle
-down'
)
=
icon
(
'
caret
-down'
)
%ul
.dropdown-menu.dropdown-menu-right.clone-options-dropdown
%li
=
ssh_clone_button
(
project
)
...
...
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