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:
authorFilipa Lacerda <filipa@gitlab.com>2017-09-19 18:38:55 +0300
committerFilipa Lacerda <filipa@gitlab.com>2017-09-19 19:55:25 +0300
commit51c9f8b6d681412166aaefccd36c589401ed89b5 (patch)
tree9f0612adbbaa0a56fb8b4554a2e42ac9c3e4fb12 /app/controllers/projects/registry
parent23024a70dbc50dbd0114ed715c906cac1a9b1d59 (diff)
[ci skip] First iteration: port haml into vue
Diffstat (limited to 'app/controllers/projects/registry')
-rw-r--r--app/controllers/projects/registry/repositories_controller.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/app/controllers/projects/registry/repositories_controller.rb b/app/controllers/projects/registry/repositories_controller.rb
index 71e7dc70a4d..89093e4172a 100644
--- a/app/controllers/projects/registry/repositories_controller.rb
+++ b/app/controllers/projects/registry/repositories_controller.rb
@@ -6,6 +6,37 @@ module Projects
def index
@images = project.container_repositories
+
+ respond_to do |format|
+ format.html
+ format.json do
+ # render json: @images
+ render json: [
+ {
+ name: 'gitlab-org/omnibus-gitlab/foo',
+ tags_path: 'foo',
+ destroy_path: 'bar',
+ location: 'foo',
+ id: '134',
+ destroy_path: 'bar'
+ },
+ {
+ name: 'gitlab-org/omnibus-gitlab',
+ tags_path: 'foo',
+ destroy_path: 'bar',
+ location: 'foo',
+ id: '123',
+ },
+ {
+ name: 'gitlab-org/omnibus-gitlab/bar',
+ tags_path: 'foo',
+ destroy_path: 'bar',
+ location: 'foo',
+ id: '973',
+ }
+ ]
+ end
+ end
end
def destroy