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
e4a90e39
Commit
e4a90e39
authored
Jun 30, 2016
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated fork page
parent
d4677353
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
51 deletions
+79
-51
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+38
-10
app/views/projects/forks/new.html.haml
app/views/projects/forks/new.html.haml
+41
-41
No files found.
app/assets/stylesheets/pages/projects.scss
View file @
e4a90e39
...
@@ -322,18 +322,46 @@ a.deploy-project-label {
...
@@ -322,18 +322,46 @@ a.deploy-project-label {
}
}
.fork-namespaces
{
.fork-namespaces
{
.fork-thumbnail
{
.row
{
text-align
:
center
;
-webkit-flex-wrap
:
wrap
;
margin-bottom
:
$gl-padding
;
display
:
-
webkit-flex
;
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
flex-start
;
.fork-thumbnail
{
@include
border-radius
(
$border-radius-base
);
background-color
:
$white-light
;
border
:
1px
solid
$border-white-light
;
height
:
202px
;
margin
:
$gl-padding
;
text-align
:
center
;
width
:
169px
;
&
.forked
{
background-color
:
#f8faff
;
border-color
:
#b3d7ff
;
}
&
:hover
{
background-color
:
#fcfdff
;
border-color
:
#e6f4ff
;
}
.caption
{
a
{
padding
:
$gl-padding
0
;
display
:
block
;
min-height
:
30px
;
width
:
100%
;
}
height
:
100%
;
padding-top
:
$gl-padding
;
color
:
$gl-gray
;
.caption
{
min-height
:
30px
;
padding
:
$gl-padding
0
;
}
}
img
{
img
{
@include
border-radius
(
50%
);
@include
border-radius
(
50%
);
max-width
:
100px
;
max-width
:
100px
;
}
}
}
}
}
}
}
...
...
app/views/projects/forks/new.html.haml
View file @
e4a90e39
-
page_title
"Fork project"
-
page_title
"Fork project"
-
if
@namespaces
.
present?
%h3
.page-title
Fork project
%p
.lead
Click to fork the project to a user or group
%hr
.fork-namespaces
.row.prepend-top-default
-
@namespaces
.
in_groups_of
(
6
,
false
)
do
|
group
|
.col-lg-3
.row
%h4
.prepend-top-0
-
group
.
each
do
|
namespace
|
Fork project
.col-md-2.col-sm-3
%p
-
if
fork
=
namespace
.
find_fork_of
(
@project
)
A fork is a copy of a project.
.fork-thumbnail
=
link_to
project_path
(
fork
),
title:
"Visit project fork"
,
class:
'has-tooltip'
do
=
image_tag
namespace_icon
(
namespace
,
100
)
.caption
%strong
=
namespace
.
human_name
%div
.text-primary
Already forked
-
else
.fork-thumbnail
=
link_to
namespace_project_forks_path
(
@project
.
namespace
,
@project
,
namespace_key:
namespace
.
id
),
title:
"Fork here"
,
method:
"POST"
,
class:
'has-tooltip'
do
=
image_tag
namespace_icon
(
namespace
,
100
)
.caption
%strong
=
namespace
.
human_name
%p
.light
Fork is a copy of a project repository.
%br
%br
Forking a repository allows you to do changes without affecting the original project.
Forking a repository allows you to make changes without affecting the original project.
-
else
.col-lg-9
%h3
No available namespaces to fork the project
.fork-namespaces
%p
.slead
-
if
@namespaces
.
present?
You must have permission to create a project in a namespace before forking.
%label
.label-light
%span
Click to fork the project to a user or group
-
@namespaces
.
in_groups_of
(
6
,
false
)
do
|
group
|
.row
-
group
.
each
do
|
namespace
|
-
if
fork
=
namespace
.
find_fork_of
(
@project
)
.fork-thumbnail.forked
=
link_to
project_path
(
fork
)
do
=
image_tag
namespace_icon
(
namespace
,
100
)
.caption
=
namespace
.
human_name
-
else
.fork-thumbnail
=
link_to
namespace_project_forks_path
(
@project
.
namespace
,
@project
,
namespace_key:
namespace
.
id
),
method:
"POST"
do
=
image_tag
namespace_icon
(
namespace
,
100
)
.caption
=
namespace
.
human_name
-
else
%label
.label-light
%span
No available namespaces to fork the project.
%br
%small
You must have permission to create a project in a namespace before forking.
.save-project-loader.hide
.save-project-loader.hide
.center
.center
%h2
%h2
%i
.fa.fa-spinner.fa-spin
%i
.fa.fa-spinner.fa-spin
Forking repository
Forking repository
%p
Please wait a moment, this page will automatically refresh when ready.
%p
Please wait a moment, this page will automatically refresh when ready.
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