From dfb7b885af94a73caee500b08d9b00ff3f3b91ea Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Tue, 26 May 2015 23:59:57 -0700 Subject: [PATCH] moved delete to separate page --- cmd/drone-server/static/scripts/drone.js | 5 +++ .../static/scripts/views/repos_del.html | 35 +++++++++++++++++++ .../static/scripts/views/repos_edit.html | 8 +++++ 3 files changed, 48 insertions(+) create mode 100644 cmd/drone-server/static/scripts/views/repos_del.html diff --git a/cmd/drone-server/static/scripts/drone.js b/cmd/drone-server/static/scripts/drone.js index 82b3a9a9..6d59d56d 100644 --- a/cmd/drone-server/static/scripts/drone.js +++ b/cmd/drone-server/static/scripts/drone.js @@ -82,6 +82,11 @@ controller: 'RepoEditCtrl', resolve: resolveUser }) + .when('/:owner/:name/delete', { + templateUrl: '/static/scripts/views/repos_del.html', + controller: 'RepoEditCtrl', + resolve: resolveUser + }) .when('/:owner/:name/:number', { templateUrl: '/static/scripts/views/build.html', controller: 'BuildCtrl', diff --git a/cmd/drone-server/static/scripts/views/repos_del.html b/cmd/drone-server/static/scripts/views/repos_del.html new file mode 100644 index 00000000..d1f03a97 --- /dev/null +++ b/cmd/drone-server/static/scripts/views/repos_del.html @@ -0,0 +1,35 @@ +
+ + + + + {{ "+"+user.login }} +
+ +
+ + + + + +
+ + +
+ +
+ Cancel + + + +
+ + +
diff --git a/cmd/drone-server/static/scripts/views/repos_edit.html b/cmd/drone-server/static/scripts/views/repos_edit.html index 7a117587..6b429bd0 100644 --- a/cmd/drone-server/static/scripts/views/repos_edit.html +++ b/cmd/drone-server/static/scripts/views/repos_edit.html @@ -106,4 +106,12 @@
{{ repo.keypair.public }}
+ +
+

Delete

+ +
Delete this Repository
+
+ +