diff --git a/data/model/legacy.py b/data/model/legacy.py
index 271ab3106..860b0af87 100644
--- a/data/model/legacy.py
+++ b/data/model/legacy.py
@@ -1537,7 +1537,7 @@ def create_repo_notification(repo, event_name, method_name, config):
method = ExternalNotificationMethod.get(ExternalNotificationMethod.name == method_name)
return RepositoryNotification.create(repository=repo, event=event, method=method,
- confing_json=json.dumps(config))
+ config_json=json.dumps(config))
def get_repo_notification(namespace_name, repository_name, uuid):
diff --git a/endpoints/api/repositorynotification.py b/endpoints/api/repositorynotification.py
index 5cb6de72c..5315d5282 100644
--- a/endpoints/api/repositorynotification.py
+++ b/endpoints/api/repositorynotification.py
@@ -16,8 +16,8 @@ def notification_view(notification):
return {
'uuid': notification.uuid,
- 'kind': notification.kind,
- 'method': notification.method,
+ 'event': notification.event.name,
+ 'method': notification.method.name,
'config': config
}
diff --git a/external_libraries.py b/external_libraries.py
index d731d5ce1..8f3de73a1 100644
--- a/external_libraries.py
+++ b/external_libraries.py
@@ -18,7 +18,7 @@ EXTERNAL_JS = [
]
EXTERNAL_CSS = [
- 'netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css',
+ 'netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css',
'netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.no-icons.min.css',
'fonts.googleapis.com/css?family=Droid+Sans:400,700',
]
diff --git a/static/css/quay.css b/static/css/quay.css
index 27a87b2e6..feb71edc6 100644
--- a/static/css/quay.css
+++ b/static/css/quay.css
@@ -3889,6 +3889,11 @@ pre.command:before {
display: none;
}
+.dropdown-select input.form-control[readonly] {
+ cursor: pointer;
+ background-color: #fff;
+}
+
.dropdown-select .lookahead-input {
padding-left: 32px;
}
@@ -4429,3 +4434,42 @@ have a fixed width and height (but it's not required).
float: right;
font-size: 22px;
}
+
+i.quay-icon {
+ background-image: url(/static/img/favicon.ico);
+ background-size: 16px;
+ width: 16px;
+ height: 16px;
+}
+
+.external-notification-view-element {
+ margin: 10px;
+ padding: 6px;
+ border: 1px solid #eee;
+ border-radius: 6px;
+}
+
+.external-notification-view-element .view-row {
+ margin-bottom: 10px;
+}
+
+.external-notification-view-element .view-row:last-child {
+ margin-bottom: 0px;
+}
+
+.external-notification-view-element .flow-text {
+ display: inline-block;
+ color: #aaa;
+ text-transform: lowercase;
+ font-variant: small-caps;
+ width: 50px;
+}
+
+.external-notification-view-element .side-controls {
+ opacity: 0;
+ transition: opacity 300ms ease-in-out;
+}
+
+.external-notification-view-element:hover .side-controls {
+ opacity: 1;
+}
\ No newline at end of file
diff --git a/static/directives/create-external-notification-dialog.html b/static/directives/create-external-notification-dialog.html
new file mode 100644
index 000000000..065138207
--- /dev/null
+++ b/static/directives/create-external-notification-dialog.html
@@ -0,0 +1,91 @@
+
+
diff --git a/static/directives/dropdown-select.html b/static/directives/dropdown-select.html
index d24cd531e..c1157e3d0 100644
--- a/static/directives/dropdown-select.html
+++ b/static/directives/dropdown-select.html
@@ -1,7 +1,8 @@
-
-
+
+
-
Push Webhooks
-
+
Repository Notifications
+
-
-
-
-
- Webhook URL |
- |
-
-
-
-
-
- {{ webhook.parameters.url }} |
-
-
- |
-
-
-
+
+
+
+ There are no notifications defined for this repository
+
+
-
-
-
- Quay will
POST to these webhooks whenever a push occurs. See the
User Guide for more information.
+
+
+
@@ -390,6 +371,11 @@
canceled="cancelSetupTrigger(trigger)"
counter="showTriggerSetupCounter">
+
+
+
diff --git a/test/data/test.db b/test/data/test.db
index 80bfb4532..8ec8dfa41 100644
Binary files a/test/data/test.db and b/test/data/test.db differ