blob: beb2c7e209d70d741a89ea6333474a2dbba35ab2 (
plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
{% include 'partials/head' %}
{% include 'partials/flash' %}
<style>
th {
min-width: 100px;
text-align: left;
background: #ddd;
}
th:nth-child(2) {
min-width: 300px;
}
table,tr,th,td {
margin: 0;
padding: 0;
}
th,td {
padding: 5px;
}
tr:nth-child(2n+1) {
background: #f8f8f8;
}
</style>
<nav class="resource-nav">
<a href="/admin/" class="btn">Back</a>
</nav>
<section class="main resource">
<h2>Push Notifications</h2>
<p>
<a href="/_services/push/new">Send custom push notification</a>
</p>
<table class="notifications" cellpadding="0" cellspacing="0">
<tr>
<th>Key</th>
<th>Message</th>
<th>Tokens</th>
<th></th>
</tr>
{% assign count = notifications.hub.count %}
{% for pair in notifications %}
{% assign name = pair[0] %}
{% assign spec = pair[1] %}
<tr>
<td>
{{name | capitalize}}
</td>
<td>
{{spec.alert}}
</td>
<td>
{{count}}
</td>
<td>
<button data-key="{{name}}" data-count="{{count}}" class="btn">send</button>
</td>
</tr>
{% endfor %}
</table>
</section>
{% include 'partials/tail' %}
<script src="public/push.js"></script>
|