Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-31 16:10:15 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-31 16:10:15 +0300
commit83d1fe9b5aeb947c1387666205ecaca81f2bf3a2 (patch)
treef5cd91c67ffbc179f051b9fd75abe6a281b2827c /app/controllers/projects/registry
parent00319e595ab52906d12ef027a10e08ac92ea1337 (diff)
Add serveral minor improvements to container registry
Diffstat (limited to 'app/controllers/projects/registry')
-rw-r--r--app/controllers/projects/registry/repositories_controller.rb3
-rw-r--r--app/controllers/projects/registry/tags_controller.rb3
2 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/projects/registry/repositories_controller.rb b/app/controllers/projects/registry/repositories_controller.rb
index e3e30176b30..2901d83fcef 100644
--- a/app/controllers/projects/registry/repositories_controller.rb
+++ b/app/controllers/projects/registry/repositories_controller.rb
@@ -9,7 +9,8 @@ module Projects
def destroy
if image.destroy
- redirect_to project_container_registry_path(@project)
+ redirect_to project_container_registry_path(@project),
+ notice: 'Images repository has been removed successfully!'
else
redirect_to project_container_registry_path(@project),
alert: 'Failed to remove images repository!'
diff --git a/app/controllers/projects/registry/tags_controller.rb b/app/controllers/projects/registry/tags_controller.rb
index 8f0a1aff394..aab130787e9 100644
--- a/app/controllers/projects/registry/tags_controller.rb
+++ b/app/controllers/projects/registry/tags_controller.rb
@@ -5,7 +5,8 @@ module Projects
def destroy
if tag.delete
- redirect_to project_container_registry_path(@project)
+ redirect_to project_container_registry_path(@project),
+ notice: 'Tag removed successfull!'
else
redirect_to project_container_registry_path(@project),
alert: 'Failed to remove repository tag!'