plz / templates / repo / webhook.html
47 lines · 42 sloc · 1.12 KB · acf8873d8ea8d46d14acc6993957982d945d2b29
Raw
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 <a class="back-link" href="/@repo.user_name/@repo.name/settings/webhooks">← %webhook_back</a>
13
14 <h1 class="settings-title">@webhook.url</h1>
15 <div class="webhook-detail__meta">
16 @if webhook.is_active
17 <span class="webhook-badge webhook-badge--active">%webhook_active</span>
18 @else
19 <span class="webhook-badge webhook-badge--inactive">%webhook_inactive</span>
20 @end
21 <span>@webhook.events</span>
22 </div>
23
24 <h2>%webhook_deliveries</h2>
25 @if deliveries.len == 0
26 <div class="issues-empty">%webhook_never_delivered</div>
27 @else
28 <table class="webhook-deliveries">
29 <thead>
30 <tr><th>Event</th><th>Status</th><th>Body</th></tr>
31 </thead>
32 <tbody>
33 @for d in deliveries
34 <tr>
35 <td>@d.event</td>
36 <td>@d.status_code</td>
37 <td><code>@d.response_body</code></td>
38 </tr>
39 @end
40 </tbody>
41 </table>
42 @end
43 </div>
44
45 @include '../layout/footer.html'
46 </body>
47</html>
48