summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-01-19 10:48:53 -0600
committerJose Ivan Vargas <jvargas@gitlab.com>2017-03-06 09:47:43 -0600
commitc51d72036698c6d53602c58f09d5ddd3ed8d225b (patch)
treeebb062dd05c03f132156d998874f604219465d37
parent30cea142ab0263dcd572ac9cdc528b781c283437 (diff)
downloadgitlab-ce-c51d72036698c6d53602c58f09d5ddd3ed8d225b.tar.gz
Added repository controller and route for the settings namespace
-rw-r--r--app/controllers/projects/settings/repository_controller.rb9
-rw-r--r--app/views/projects/settings/repository/show.html.haml2
-rw-r--r--config/routes/project.rb1
3 files changed, 12 insertions, 0 deletions
diff --git a/app/controllers/projects/settings/repository_controller.rb b/app/controllers/projects/settings/repository_controller.rb
new file mode 100644
index 00000000000..1c2eab682e0
--- /dev/null
+++ b/app/controllers/projects/settings/repository_controller.rb
@@ -0,0 +1,9 @@
+module Projects
+ module Settings
+ class RepositoryController < Projects::ApplicationController
+ def show
+
+ end
+ end
+ end
+end
diff --git a/app/views/projects/settings/repository/show.html.haml b/app/views/projects/settings/repository/show.html.haml
new file mode 100644
index 00000000000..428a6f4b2a0
--- /dev/null
+++ b/app/views/projects/settings/repository/show.html.haml
@@ -0,0 +1,2 @@
+%h1
+ Hello World
diff --git a/config/routes/project.rb b/config/routes/project.rb
index 7dc7963ab88..c56c5e14384 100644
--- a/config/routes/project.rb
+++ b/config/routes/project.rb
@@ -325,6 +325,7 @@ constraints(ProjectUrlConstrainer.new) do
resource :members, only: [:show]
resource :ci_cd, only: [:show], controller: 'ci_cd'
resource :integrations, only: [:show]
+ resource :repository, only: [:show], controller: :repository
end
# Since both wiki and repository routing contains wildcard characters