2014-07-17 17:32:39 +00:00
|
|
|
<div class="external-notification-view-element">
|
|
|
|
<div class="side-controls">
|
|
|
|
<div class="dropdown" style="display: inline-block">
|
|
|
|
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
|
|
|
<i class="fa fa-cog"></i>
|
|
|
|
<b class="caret"></b>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu dropdown-menu-right pull-right">
|
2014-07-18 20:57:46 +00:00
|
|
|
<li ng-if="methodInfo.id == 'webhook'">
|
|
|
|
<a href="http://docs.quay.io/guides/notifications.html#webhook_{{ eventInfo.id }}"
|
|
|
|
target="_blank">
|
|
|
|
<i class="fa fa-book"></i>
|
|
|
|
Webhook Documentation</a>
|
|
|
|
</li>
|
|
|
|
<li class="divider" ng-if="methodInfo.id == 'webhook'"></li>
|
2014-07-17 17:32:39 +00:00
|
|
|
<li><a href="javascript:void(0)" ng-click="testNotification()">
|
|
|
|
<i class="fa fa-send"></i>
|
|
|
|
Issue Test Notification</a>
|
|
|
|
</li>
|
|
|
|
<li><a href="javascript:void(0)" ng-click="deleteNotification()">
|
|
|
|
<i class="fa fa-times"></i>
|
|
|
|
Delete</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="view-row">
|
2014-07-18 20:57:46 +00:00
|
|
|
<span class="flow-text">On</span>
|
2014-07-17 17:32:39 +00:00
|
|
|
<span class="notification-event">
|
|
|
|
<i class="fa fa-lg" ng-class="eventInfo.icon"></i>
|
|
|
|
{{ eventInfo.title }}
|
|
|
|
</span>
|
|
|
|
</div>
|
2014-11-24 21:07:38 +00:00
|
|
|
|
2014-07-17 17:32:39 +00:00
|
|
|
<div class="view-row">
|
|
|
|
<span class="flow-text">Issue A</span>
|
|
|
|
<span class="notification-method">
|
|
|
|
<i class="fa fa-lg" ng-class="methodInfo.icon"></i>
|
|
|
|
{{ methodInfo.title }}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
2014-07-18 18:12:20 +00:00
|
|
|
<div class="view-row">
|
2014-07-17 17:32:39 +00:00
|
|
|
<span ng-switch on="methodInfo.id">
|
|
|
|
<span ng-switch-when="email">
|
|
|
|
<span class="flow-text">To</span>
|
|
|
|
<code>{{ config.email }}</code>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
<span ng-switch-when="webhook">
|
|
|
|
<span class="flow-text">To</span>
|
|
|
|
<code>{{ config.url }}</code>
|
|
|
|
</span>
|
2014-07-18 18:12:20 +00:00
|
|
|
|
|
|
|
<span ng-switch-when="quay_notification">
|
|
|
|
<span class="flow-text">To</span>
|
|
|
|
<span class="entity-reference" entity="config.target" namespace="repository.namespace"></span>
|
|
|
|
</span>
|
2014-07-17 17:32:39 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|