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
Boxiang Sun
gitlab-ce
Commits
9477448a
Commit
9477448a
authored
Nov 21, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2023 from martinsp/master
fixes :notice after project is created in projects_controller
parents
6bf65697
8c5b79a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+2
-1
app/views/projects/create.js.haml
app/views/projects/create.js.haml
+1
-1
No files found.
app/controllers/projects_controller.rb
View file @
9477448a
...
...
@@ -21,9 +21,10 @@ class ProjectsController < ProjectResourceController
@project
=
Project
.
create_by_user
(
params
[
:project
],
current_user
)
respond_to
do
|
format
|
flash
[
:notice
]
=
'Project was successfully created.'
if
@project
.
saved?
format
.
html
do
if
@project
.
saved?
redirect_to
(
@project
,
notice:
'Project was successfully created.'
)
redirect_to
@project
else
render
action:
"new"
end
...
...
app/views/projects/create.js.haml
View file @
9477448a
-
if
@project
.
saved?
:plain
location.href = "
#{
project_path
(
@project
,
notice:
'Project was successfully created.'
)
}
";
location.href = "
#{
project_path
(
@project
)
}
";
-
else
-
if
@project
.
git_error?
location.href = "
#{
errors_githost_path
}
";
...
...
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