forked from atlassian/github-for-jira
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithub-subscriptions.hbs
42 lines (40 loc) · 1.88 KB
/
github-subscriptions.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="ap-local-base-url" content="{{localBaseUrl}}">
<title>{{title}}</title>
<link rel="stylesheet" href="/public/primer/build.css" media="all" />
<script src="/public/js/jquery.min.js"></script>
</head>
<body class="bg-gray px-3 py-6">
<section class="mx-auto" style="max-width: 510px">
<p class="text-gray text-center my-4">
<img src="/public/octicons/mark-github.svg" height="45px;" />
</p>
<h2 class="f2 text-center text-normal">Manage Jira Subscriptions</h2>
<p class="text-gray text-center mb-4">From here you can review and delete subscriptions to other Jira instances connected this installation.</p>
<div class="Box box-shadow">
<div class="">
{{#if hasSubscriptions }}
{{#each subscriptions}}
<div class="Box-row Box-row--hover-gray muted-link d-block clearfix">
<input type="hidden" id="_csrf" name="_csrf" value="{{../csrfToken}}">
<input type="hidden" id="installationId" name="installationId" value="{{ gitHubInstallationId }}">
<input type="hidden" id="jiraHost" name="jiraHost" value="{{ jiraHost }}">
<span class="text-bold text-gray-dark float-left my-2">{{ jiraHost }}</span>
<button class="delete-link btn btn-danger float-right" data-jira-host="{{ jiraHost }}" data-installation-id="{{ gitHubInstallationId }}">Delete</button>
</div>
{{/each}}
{{else}}
<div class="Box-row Box-row--hover-gray muted-link d-block clearfix">
<span class="text-bold text-gray-dark" data-installation-id="{{ id }}">No subscriptions found for this installation</span>
</div>
{{/if}}
</div>
</div>
</section>
<script src="/public/js/github-configuration.js"></script>
</body>
</html>