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
670544c8
Commit
670544c8
authored
Sep 04, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Style project home page
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
aa75e76a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
23 deletions
+46
-23
app/assets/stylesheets/generic/avatar.scss
app/assets/stylesheets/generic/avatar.scss
+3
-1
app/assets/stylesheets/generic/blocks.scss
app/assets/stylesheets/generic/blocks.scss
+5
-0
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+29
-12
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
+8
-9
No files found.
app/assets/stylesheets/generic/avatar.scss
View file @
670544c8
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
&
.s48
{
width
:
48px
;
height
:
48px
;
margin-right
:
10px
;
}
&
.s48
{
width
:
48px
;
height
:
48px
;
margin-right
:
10px
;
}
&
.s60
{
width
:
60px
;
height
:
60px
;
margin-right
:
12px
;
}
&
.s60
{
width
:
60px
;
height
:
60px
;
margin-right
:
12px
;
}
&
.s90
{
width
:
90px
;
height
:
90px
;
margin-right
:
15px
;
}
&
.s90
{
width
:
90px
;
height
:
90px
;
margin-right
:
15px
;
}
&
.s140
{
width
:
140px
;
height
:
140px
;
margin-right
:
20px
;
}
&
.s160
{
width
:
160px
;
height
:
160px
;
margin-right
:
20px
;
}
&
.s160
{
width
:
160px
;
height
:
160px
;
margin-right
:
20px
;
}
}
}
...
@@ -40,5 +41,6 @@
...
@@ -40,5 +41,6 @@
&
.s32
{
font-size
:
22px
;
line-height
:
32px
;
}
&
.s32
{
font-size
:
22px
;
line-height
:
32px
;
}
&
.s60
{
font-size
:
32px
;
line-height
:
60px
;
}
&
.s60
{
font-size
:
32px
;
line-height
:
60px
;
}
&
.s90
{
font-size
:
36px
;
line-height
:
90px
;
}
&
.s90
{
font-size
:
36px
;
line-height
:
90px
;
}
&
.s160
{
font-size
:
96px
;
line-height
:
1
.33
;
}
&
.s140
{
font-size
:
72px
;
line-height
:
140px
;
}
&
.s160
{
font-size
:
96px
;
line-height
:
160px
;
}
}
}
app/assets/stylesheets/generic/blocks.scss
View file @
670544c8
...
@@ -27,6 +27,11 @@
...
@@ -27,6 +27,11 @@
border-bottom
:
1px
solid
#e7e9ed
;
border-bottom
:
1px
solid
#e7e9ed
;
color
:
$gl-gray
;
color
:
$gl-gray
;
&
.footer-block
{
margin-top
:
0
;
margin-bottom
:
-
$gl-padding
;
}
.title
{
.title
{
color
:
$gl-text-color
;
color
:
$gl-text-color
;
}
}
...
...
app/assets/stylesheets/pages/projects.scss
View file @
670544c8
...
@@ -16,6 +16,10 @@
...
@@ -16,6 +16,10 @@
.project-home-panel
{
.project-home-panel
{
text-align
:
center
;
text-align
:
center
;
background
:
#f7f8fa
;
margin
:
-
$gl-padding
;
padding
:
$gl-padding
;
padding-top
:
40px
;
.project-identicon-holder
{
.project-identicon-holder
{
margin-bottom
:
15px
;
margin-bottom
:
15px
;
...
@@ -37,14 +41,13 @@
...
@@ -37,14 +41,13 @@
.project-home-desc
{
.project-home-desc
{
h1
{
h1
{
margin
:
0
;
margin
:
0
;
margin-bottom
:
10
px
;
margin-bottom
:
5
px
;
font-size
:
2
6
px
;
font-size
:
2
3
px
;
font-weight
:
bold
;
font-weight
:
normal
;
}
}
p
{
p
{
font-size
:
18px
;
color
:
#7f8fa4
;
color
:
#666
;
display
:
inline
;
display
:
inline
;
}
}
}
}
...
@@ -68,11 +71,12 @@
...
@@ -68,11 +71,12 @@
.btn
{
.btn
{
@extend
.btn-info
;
@extend
.btn-info
;
text-transform
:
uppercase
;
font-size
:
15px
;
line-height
:
20px
;
padding
:
10px
16px
;
border-radius
:
3px
;
margin-left
:
10px
;
margin-left
:
10px
;
font-weight
:
bold
;
font-size
:
14px
;
line-height
:
16px
;
padding
:
8px
12px
;
.count
{
.count
{
padding-left
:
7px
;
padding-left
:
7px
;
...
@@ -232,10 +236,23 @@ table.table.protected-branches-list tr.no-border {
...
@@ -232,10 +236,23 @@ table.table.protected-branches-list tr.no-border {
.project-stats
{
.project-stats
{
text-align
:
center
;
text-align
:
center
;
margin-top
:
0
;
margin-bottom
:
0
;
padding-top
:
5px
;
padding-bottom
:
0
;
ul
.nav-pills
{
display
:inline-block
;
}
ul
.nav-pills
{
li
{
display
:inline
;
}
display
:inline-block
;
a
{
float
:left
;
}
}
li
{
display
:inline
;
}
a
{
float
:left
;
font-size
:
17px
;
}
li
.missing
a
{
li
.missing
a
{
color
:
#bbb
;
color
:
#bbb
;
...
...
app/views/projects/_home_panel.html.haml
View file @
670544c8
-
empty_repo
=
@project
.
empty_repo?
-
empty_repo
=
@project
.
empty_repo?
.project-home-panel.clearfix
{
:class
=>
(
"empty-project"
if
empty_repo
)}
.project-home-panel.clearfix
{
:class
=>
(
"empty-project"
if
empty_repo
)}
.project-identicon-holder
.project-identicon-holder
=
project_icon
(
@project
,
alt:
''
,
class:
'project-avatar avatar s
9
0'
)
=
project_icon
(
@project
,
alt:
''
,
class:
'project-avatar avatar s
14
0'
)
.project-home-desc
.project-home-desc
%h1
=
@project
.
name
%h1
=
@project
.
name
-
if
@project
.
description
.
present?
-
if
@project
.
description
.
present?
...
...
app/views/projects/show.html.haml
View file @
670544c8
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
=
render
"home_panel"
=
render
"home_panel"
.project-stats
.project-stats
.gray-content-block
%ul
.nav.nav-pills
%ul
.nav.nav-pills
%li
%li
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
@ref
||
@repository
.
root_ref
)
do
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
@ref
||
@repository
.
root_ref
)
do
...
@@ -63,7 +63,6 @@
...
@@ -63,7 +63,6 @@
=
icon
(
"exclamation-triangle fw"
)
=
icon
(
"exclamation-triangle fw"
)
Archived project! Repository is read-only
Archived project! Repository is read-only
%hr
%section
%section
-
if
prefer_readme?
-
if
prefer_readme?
=
render
'projects/readme'
=
render
'projects/readme'
...
@@ -74,10 +73,10 @@
...
@@ -74,10 +73,10 @@
-
if
current_user
-
if
current_user
-
access
=
user_max_access_in_project
(
current_user
,
@project
)
-
access
=
user_max_access_in_project
(
current_user
,
@project
)
-
if
access
-
if
access
%hr
.prepend-top-20
%p
.light
.gray-content-block.footer-block.center
You have
#{
access
}
access to this project.
You have
#{
access
}
access to this project.
-
if
@project
.
project_member_by_id
(
current_user
)
-
if
@project
.
project_member_by_id
(
current_user
)
=
link_to
leave_namespace_project_project_members_path
(
@project
.
namespace
,
@project
),
=
link_to
leave_namespace_project_project_members_path
(
@project
.
namespace
,
@project
),
data:
{
confirm:
leave_project_message
(
@project
)
},
method: :delete
,
title:
'Leave project'
,
class:
'cred'
do
data:
{
confirm:
leave_project_message
(
@project
)
},
method: :delete
,
title:
'Leave project'
,
class:
'cred'
do
Leave this project
Leave this project
\ No newline at end of file
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