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
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
projects_controller.rb
app/controllers/projects_controller.rb
+2
-1
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