| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | @include '../layout/head.html' |
| 5 | </head> |
| 6 | <body> |
| 7 | @include '../layout/header.html' |
| 8 | |
| 9 | <div class="content"> |
| 10 | @include '../layout/repo_menu.html' |
| 11 | |
| 12 | <div class="settings-header"> |
| 13 | <h1 class="settings-title">%webhooks</h1> |
| 14 | <a class="settings-header__new" href="/@repo.user_name/@repo.name/settings/webhooks/new">%webhook_new</a> |
| 15 | </div> |
| 16 | |
| 17 | @if webhooks.len == 0 |
| 18 | <div class="issues-empty">%webhook_none</div> |
| 19 | @else |
| 20 | <ul class="webhook-list"> |
| 21 | @for wh in webhooks |
| 22 | <li class="webhook-row"> |
| 23 | <div class="webhook-row__body"> |
| 24 | <a class="webhook-row__url" href="/@repo.user_name/@repo.name/settings/webhooks/@wh.id">@wh.url</a> |
| 25 | <div class="webhook-row__meta"> |
| 26 | @if wh.is_active |
| 27 | <span class="webhook-badge webhook-badge--active">%webhook_active</span> |
| 28 | @else |
| 29 | <span class="webhook-badge webhook-badge--inactive">%webhook_inactive</span> |
| 30 | @end |
| 31 | <span>@wh.events</span> |
| 32 | </div> |
| 33 | </div> |
| 34 | <form method="post" action="/@repo.user_name/@repo.name/settings/webhooks/@wh.id/delete" class="webhook-row__delete"> |
| 35 | <button type="submit" class="webhook-row__delete-btn">%webhook_delete</button> |
| 36 | </form> |
| 37 | </li> |
| 38 | @end |
| 39 | </ul> |
| 40 | @end |
| 41 | </div> |
| 42 | |
| 43 | @include '../layout/footer.html' |
| 44 | </body> |
| 45 | </html> |
| 46 | |