diff --git a/cmd/drone-server/static/scripts/drone.js b/cmd/drone-server/static/scripts/drone.js index 6d59d56d..ad49cc55 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/edit/env', { + templateUrl: '/static/scripts/views/repos_env.html', + controller: 'RepoEditCtrl', + resolve: resolveUser + }) .when('/:owner/:name/delete', { templateUrl: '/static/scripts/views/repos_del.html', controller: 'RepoEditCtrl', diff --git a/cmd/drone-server/static/scripts/views/repos_del.html b/cmd/drone-server/static/scripts/views/repos_del.html index d1f03a97..1a1e4896 100644 --- a/cmd/drone-server/static/scripts/views/repos_del.html +++ b/cmd/drone-server/static/scripts/views/repos_del.html @@ -24,11 +24,18 @@
-
- Cancel - - +
+ +Warning: this action cannot be undone.
diff --git a/cmd/drone-server/static/scripts/views/repos_edit.html b/cmd/drone-server/static/scripts/views/repos_edit.html index 6b429bd0..e5c76812 100644 --- a/cmd/drone-server/static/scripts/views/repos_edit.html +++ b/cmd/drone-server/static/scripts/views/repos_edit.html @@ -25,7 +25,7 @@ diff --git a/cmd/drone-server/static/scripts/views/repos_env.html b/cmd/drone-server/static/scripts/views/repos_env.html new file mode 100644 index 00000000..a40322a1 --- /dev/null +++ b/cmd/drone-server/static/scripts/views/repos_env.html @@ -0,0 +1,42 @@ +
+ + + + + {{ "+"+user.login }} +
+ +
+ + + + + +
+
+
+
+
    +
  • + + + +
  • +
  • + + + +
  • +
+ + +
+
+
diff --git a/cmd/drone-server/static/styles/drone.css b/cmd/drone-server/static/styles/drone.css index 8cfa318c..82eb38ae 100644 --- a/cmd/drone-server/static/styles/drone.css +++ b/cmd/drone-server/static/styles/drone.css @@ -1346,12 +1346,23 @@ section .row { display: block; display: flex; text-decoration: none; + position: relative; } -section .row:hover { +section a.row:hover { background:#FAFAFA; } +section a.row:after { + content: "\f29c"; + font-family: Material-Design-Iconic-Font; + line-height: 74px; + font-size: 26px; + color: rgb(204, 204, 204); + position: absolute; + right: 25px; +} + section .row > div:first-child { padding: 30px 0px; border-bottom: 1px solid #EEE;