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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
82eee243
Commit
82eee243
authored
Sep 20, 2020
by
Giorgenes Gelatti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused package destroy action
parent
60e36e72
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
12 deletions
+0
-12
app/controllers/projects/packages/packages_controller.rb
app/controllers/projects/packages/packages_controller.rb
+0
-9
locale/gitlab.pot
locale/gitlab.pot
+0
-3
No files found.
app/controllers/projects/packages/packages_controller.rb
View file @
82eee243
...
...
@@ -5,20 +5,11 @@ module Projects
class
PackagesController
<
Projects
::
ApplicationController
include
PackagesAccess
before_action
:authorize_destroy_package!
,
only:
[
:destroy
]
def
show
@package
=
project
.
packages
.
find
(
params
[
:id
])
@package_files
=
@package
.
package_files
.
recent
@maven_metadatum
=
@package
.
maven_metadatum
end
def
destroy
@package
=
project
.
packages
.
find
(
params
[
:id
])
@package
.
destroy
redirect_to
project_packages_path
(
@project
),
status: :found
,
notice:
_
(
'Package was removed'
)
end
end
end
end
locale/gitlab.pot
View file @
82eee243
...
...
@@ -17928,9 +17928,6 @@ msgstr ""
msgid "Package type must be PyPi"
msgstr ""
msgid "Package was removed"
msgstr ""
msgid "PackageRegistry|%{name} version %{version} was created %{datetime}"
msgstr ""
...
...
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