BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
df51b029
Unverified
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
27 deletions
+20
-27
projects.scss
app/assets/stylesheets/pages/projects.scss
+9
-17
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