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
193bc526
Unverified
Commit
193bc526
authored
Oct 02, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed specs
parent
075f5ed9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
new.html.haml
app/views/projects/forks/new.html.haml
+1
-0
fork.rb
features/steps/project/fork.rb
+1
-1
No files found.
app/views/projects/forks/new.html.haml
View file @
193bc526
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
-
fork_path
=
forked_project
?
project_path
(
forked_project
)
:
project_forks_path
(
@project
,
namespace_key:
namespace
.
id
)
-
fork_path
=
forked_project
?
project_path
(
forked_project
)
:
project_forks_path
(
@project
,
namespace_key:
namespace
.
id
)
.bordered-box.fork-thumbnail.text-center.prepend-left-default.append-right-default.prepend-top-default.append-bottom-default
{
class:
[(
"disabled"
unless
can_create_project
),
(
"forked"
if
forked_project
)]
}
.bordered-box.fork-thumbnail.text-center.prepend-left-default.append-right-default.prepend-top-default.append-bottom-default
{
class:
[(
"disabled"
unless
can_create_project
),
(
"forked"
if
forked_project
)]
}
=
link_to
fork_path
,
=
link_to
fork_path
,
method:
"POST"
,
class:
[(
"js-fork-thumbnail"
unless
forked_project
),
(
"disabled has-tooltip"
unless
can_create_project
)],
class:
[(
"js-fork-thumbnail"
unless
forked_project
),
(
"disabled has-tooltip"
unless
can_create_project
)],
title:
(
_
(
'You have reached your project limit'
)
unless
can_create_project
)
do
title:
(
_
(
'You have reached your project limit'
)
unless
can_create_project
)
do
-
if
/no_((\w*)_)*avatar/
.
match
(
avatar
)
-
if
/no_((\w*)_)*avatar/
.
match
(
avatar
)
...
...
features/steps/project/fork.rb
View file @
193bc526
...
@@ -26,7 +26,7 @@ class Spinach::Features::ProjectFork < Spinach::FeatureSteps
...
@@ -26,7 +26,7 @@ class Spinach::Features::ProjectFork < Spinach::FeatureSteps
end
end
step
'I fork to my namespace'
do
step
'I fork to my namespace'
do
page
.
within
'.fork-
namespaces
'
do
page
.
within
'.fork-
thumbnail-container
'
do
click_link
current_user
.
name
click_link
current_user
.
name
end
end
end
end
...
...
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