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
Jérome Perrin
gitlab-ce
Commits
df51b029
Commit
df51b029
authored
Sep 10, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve project fork page
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
6933da1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
27 deletions
+20
-27
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+9
-17
app/views/projects/forks/new.html.haml
app/views/projects/forks/new.html.haml
+11
-10
No files found.
app/assets/stylesheets/pages/projects.scss
View file @
df51b029
...
...
@@ -203,26 +203,18 @@ ul.nav.nav-projects-tabs {
}
.fork-namespaces
{
.thumbnail
{
.fork-thumbnail
{
text-align
:
center
;
margin-bottom
:
$gl-padding
;
&
.fork-exists-thumbnail
{
border-color
:
#EEE
;
.caption
{
color
:
#999
;
}
}
&
.fork-thumbnail
{
border-color
:
#AAA
;
&
:hover
{
background-color
:
$hover
;
}
.caption
{
padding
:
$gl-padding
0
;
min-height
:
30px
;
}
a
{
text-decoration
:
none
;
img
{
@include
border-radius
(
50%
);
max-width
:
100px
;
}
}
}
...
...
app/views/projects/forks/new.html.haml
View file @
df51b029
...
...
@@ -10,21 +10,22 @@
-
group
.
each
do
|
namespace
|
.col-md-2.col-sm-3
-
if
fork
=
namespace
.
find_fork_of
(
@project
)
.
thumbnail.fork-exists
-thumbnail
.
fork
-thumbnail
=
link_to
project_path
(
fork
),
title:
"Visit project fork"
,
class:
'has_tooltip'
do
=
image_tag
namespace_icon
(
namespace
,
2
00
)
=
image_tag
namespace_icon
(
namespace
,
1
00
)
.caption
%h4
=
namespace
.
human_name
%p
=
namespace
.
path
%strong
=
namespace
.
human_name
%div
.text-primary
Already forked
-
else
.
thumbnail.
fork-thumbnail
.fork-thumbnail
=
link_to
namespace_project_fork_path
(
@project
.
namespace
,
@project
,
namespace_key:
namespace
.
id
),
title:
"Fork here"
,
method:
"POST"
,
class:
'has_tooltip'
do
=
image_tag
namespace_icon
(
namespace
,
2
00
)
=
image_tag
namespace_icon
(
namespace
,
1
00
)
.caption
%h4
=
namespace
.
human_name
%p
=
namespace
.
path
%strong
=
namespace
.
human_name
%p
.light
Fork is a copy of a project repository.
...
...
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