Move repo notification create to its own page

Also fixes a bug around Slack setup

Fixes #1834
This commit is contained in:
Joseph Schorr 2016-09-14 16:06:52 -04:00
parent 58641cbf4f
commit 0dce935c40
12 changed files with 390 additions and 255 deletions

View file

@ -4,9 +4,9 @@
<i class="fa fa-bell"></i> Events and Notifications
<div class="heading-controls hidden-sm hidden-xs">
<button class="btn btn-primary" ng-click="askCreateNotification()">
<a href="/repository/{{ repository.namespace }}/{{ repository.name }}/create-notification" class="btn btn-primary">
<i class="fa fa-plus"></i> Create Notification
</button>
</a>
</div>
</div>
<div class="panel-body">
@ -19,7 +19,7 @@
Click the "Create Notification" button above to add a new notification for a repository event.
</div>
<div class="empty-secondary-msg visible-sm visible-xs" ng-if="repository.can_write">
<a ng-click="askCreateNotification()">Click here</a> to add a new notification for a repository event.
<a href="/repository/{{ repository.namespace }}/{{ repository.name }}/create-notification">Click here</a> to add a new notification for a repository event.
</div>
</div>
@ -95,11 +95,4 @@
</div>
</div>
</div>
<!-- New notification dialog-->
<div class="create-external-notification-dialog"
repository="repository"
counter="showNewNotificationCounter"
default-data="newNotificationData"
notification-created="handleNotificationCreated(notification)"></div>
</div>