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
Léo-Paul Géneau
gitlab-ce
Commits
4ac56fa1
Commit
4ac56fa1
authored
May 23, 2014
by
Jeroen van Baarsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed some stuff around after rebase
parent
d0e794cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
app/controllers/projects/branches_controller.rb
app/controllers/projects/branches_controller.rb
+1
-1
app/views/projects/branches/destroy.js.haml
app/views/projects/branches/destroy.js.haml
+2
-4
No files found.
app/controllers/projects/branches_controller.rb
View file @
4ac56fa1
...
@@ -23,8 +23,8 @@ class Projects::BranchesController < Projects::ApplicationController
...
@@ -23,8 +23,8 @@ class Projects::BranchesController < Projects::ApplicationController
end
end
def
destroy
def
destroy
@branch
=
@repository
.
find_branch
(
params
[
:id
])
DeleteBranchService
.
new
.
execute
(
project
,
params
[
:id
],
current_user
)
DeleteBranchService
.
new
.
execute
(
project
,
params
[
:id
],
current_user
)
@branch_name
=
params
[
:id
]
respond_to
do
|
format
|
respond_to
do
|
format
|
format
.
html
{
redirect_to
project_branches_path
(
@project
)
}
format
.
html
{
redirect_to
project_branches_path
(
@project
)
}
...
...
app/views/projects/branches/destroy.js.haml
View file @
4ac56fa1
:plain
:plain
$(".js-branch-
#{
@branch
.
name
}
").remove();
$(".js-branch-
#{
@branch_name
}
").remove();
$('.js-recentbranch-count').html("
#{
@repository
.
recent_branches
.
count
}
")
$('.js-totalbranch-count').html("
#{
@repository
.
branches
.
size
}
")
$('.js-protectedbranch-count').html("
#{
@project
.
protected_branches
.
count
}
")
$('.js-totalbranch-count').html("
#{
@repository
.
branch_names
.
count
}
")
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