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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
44b1eadf
Commit
44b1eadf
authored
Dec 23, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhq
parents
bfcaf4e5
a6cbeaca
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
5 deletions
+23
-5
app/assets/stylesheets/sections/dashboard.scss
app/assets/stylesheets/sections/dashboard.scss
+4
-0
app/contexts/projects/update_context.rb
app/contexts/projects/update_context.rb
+1
-1
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+1
-1
features/project/project.feature
features/project/project.feature
+5
-0
features/steps/project/project.rb
features/steps/project/project.rb
+12
-3
No files found.
app/assets/stylesheets/sections/dashboard.scss
View file @
44b1eadf
...
...
@@ -73,6 +73,10 @@
font-weight
:
bold
;
}
a
{
display
:
block
;
}
.project-name
,
.group-name
{
font-size
:
15px
;
}
...
...
app/contexts/projects/update_context.rb
View file @
44b1eadf
...
...
@@ -9,7 +9,7 @@ module Projects
new_branch
=
params
[
:project
].
delete
(
:default_branch
)
if
project
.
repository
.
exists?
&&
new_branch
!=
project
.
default_branch
if
project
.
repository
.
exists?
&&
new_branch
&&
new_branch
!=
project
.
default_branch
project
.
change_head
(
new_branch
)
end
...
...
app/views/projects/edit.html.haml
View file @
44b1eadf
...
...
@@ -130,7 +130,7 @@
.title
Transfer project
.errors-holder
.form-holder
=
form_for
(
@project
,
url:
transfer_project_path
(
@project
),
remote:
true
,
html:
{
class:
'transfer-project'
})
do
|
f
|
=
form_for
(
@project
,
url:
transfer_project_path
(
@project
),
method: :put
,
remote:
true
,
html:
{
class:
'transfer-project'
})
do
|
f
|
.control-group
=
f
.
label
:namespace_id
do
%span
Namespace
...
...
features/project/project.feature
View file @
44b1eadf
...
...
@@ -19,3 +19,8 @@ Feature: Project Feature
And
change project settings
And
I save project
Then
I should see project with new settings
Scenario
:
I
change project path
When
I visit edit project
"Shop"
page
And
change project path settings
Then
I should see project with new path settings
features/steps/project/project.rb
View file @
44b1eadf
...
...
@@ -3,16 +3,25 @@ class ProjectFeature < Spinach::FeatureSteps
include
SharedProject
include
SharedPaths
And
'change project settings'
do
step
'change project settings'
do
fill_in
'project_name'
,
with:
'NewName'
uncheck
'project_issues_enabled'
end
And
'I save project'
do
step
'I save project'
do
click_button
'Save changes'
end
Then
'I should see project with new settings'
do
step
'I should see project with new settings'
do
find_field
(
'project_name'
).
value
.
should
==
'NewName'
end
step
'change project path settings'
do
fill_in
"project_path"
,
with:
"new-path"
click_button
"Rename"
end
step
'I should see project with new path settings'
do
project
.
path
.
should
==
"new-path"
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